!function(){"use strict";function e(e,t){return e+t}const{hasOwnProperty:t}={};function n(e,n){return t.call(n,e)}function i(){return i=Object.assign||function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;t>o;o++)i[o-1]=arguments[o];return i.forEach(t=>{for(const i in t)n(i,t)&&(e[i]=t[i])}),e},i.apply(void 0,arguments)}function o(e){return Array.isArray(e)}function r(e){return"object"==typeof e&&null!==e&&!o(e)}function a(e){if("keys"in Object&&"function"==typeof Object.keys)return Object.keys(e);const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}function s(e,t){return a(t).reduce((n,i)=>(n[i]=e(t[i]),n),{})}function c(e){return o(e)?e.map(c):r(e)?s(c,e):e}function l(e){return o(e)?e.filter(e=>null!=e&&!Number.isNaN(e)):Object.keys(e).reduce((t,n)=>{const i=e[n];return null==i||Number.isNaN(i)||(t[n]=i),t},{})}function d(e,t){let n;return function(){clearTimeout(n);for(var i=arguments.length,o=Array(i),r=0;i>r;r++)o[r]=arguments[r];n=setTimeout.apply(void 0,[t,e].concat(o))}}function u(e,t){for(let n=0;t.length>n;n++){const i=t[n];if(e(i))return i}}function m(e,t){for(let n=t.length-1;n>=0;n--)if(e(t[n]))return t[n]}function p(e){return e}function f(e,t){return a(t).forEach(n=>{e(t[n],n)})}function h(){return Math.random().toString(36).substring(2)}function g(e){const t=h();return n(t,e)?g(e):t}function v(e,t,n){const i=function(e,t){const n="string"==typeof e?e.split("."):e;let i=0,o=t;for(;o&&n.length>i;)o=o[n[i++]];return o}(t,n);return null!=i?i:e}function _(e,t){return-1!==t.indexOf(e)}function w(e){return 0===(o(e)?e:Object.keys(e)).length}function y(e){return!e}function b(e){return!!e}function x(e){return e.length>0?e[e.length-1]:void 0}function k(e,t){return a(t).reduce((n,i)=>(Object.defineProperty(n,e(i),{value:t[i],enumerable:!0}),n),{})}function C(e,t){if(w(t))return e;const i={};return f((a,s)=>{if(n(s,t))if(r(e[s])&&r(t[s]))i[s]=C(e[s],t[s]);else if(o(e[s])&&o(t[s])){const n=Math.max(e[s].length,t[s].length);i[s]=Array(n);for(let o=0;n>o;o++)o in t[s]?i[s][o]=t[s][o]:o in e[s]&&(i[s][o]=e[s][o])}else i[s]=t[s];else i[s]=e[s]},e),f((e,o)=>{n(o,i)||(i[o]=t[o])},t),i}function E(e){if(0===e.length)return{};const[t,...n]=e;return n.reduce((e,t)=>C(e,t),t)}function I(e){return function(e,t){const i={};return function(){const o=e.apply(void 0,arguments);if(n(o,i))return i[o];const r=t.apply(void 0,arguments);return i[o]=r,r}}(p,e)}function A(){}function L(e,t){return e.reduce((e,n)=>(e[n]=t[n],e),{})}function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},T.apply(null,arguments)}function P(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function z(e,t){if(P(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const i=Object.keys(e);if(i.length!==Object.keys(t).length)return!1;for(let o=0;i.length>o;o++)if(!n(i[o],t)||!P(e[i[o]],t[i[o]]))return!1;return!0}function S(t){return t.reduce(e,0)}function O(e){return Array.prototype.slice.call(e)}function M(e){return a(e).map(t=>[t,e[t]])}const D=(()=>{try{return!1}catch(e){return!1}})(),F=new Set(["search","select","radio","checkbox"]),N="not_ready",B="ready",j="bootstrapped",q="eu-west3";var H=Object.freeze({__proto__:null,FRA_A:"fra-a",FRA_B:"fra-b",FRA:"fra",EU_WEST3:q,DAL:"dal"});const W=e=>(e=>{const t="string"==typeof e?parseInt(e,10):e;return(e=>"number"==typeof e&&e>=0)(t)?t:null})(void 0!==e.group?e.group:e.skill);var R="__test_storage_support__",V="@@test",U=function(e){void 0===e&&(e="local");try{var t="session"===e?window.sessionStorage:window.localStorage;return t.setItem(R,V),t.getItem(R)!==V?!1:(t.removeItem(R),!0)}catch(e){return!1}},G=function(){var e=Object.create(null);return{getItem:function(t){var n=e[t];return"string"==typeof n?n:null},setItem:function(t,n){e[t]=n},removeItem:function(t){delete e[t]},clear:function(){e=Object.create(null)}}}();const X=e=>M(e).map(e=>e.map(encodeURIComponent).join("=")).join("&"),Y=e=>{const t=function(e){return e.reduce((e,t)=>{let[n,i]=t;return e[n]=i,e},{})}(e.split("&").filter(Boolean).map(e=>e.split("=").map(e=>decodeURIComponent(e.replace("+","%20")))).map(e=>2===e.length?e:[e[0],""]));return t},J=/(?:[^:]+:\/\/)?([^/\s]+)/;const K=/[^:]+:\/\/[^(/|?)\s]+/,$=e=>{const t=e.match(K);return t&&t[0]},Q=/.*?\?([^#]+)/,Z=e=>{const t=e.match(Q);return t?"?"+t[1]:""},ee=e=>e.replace(/^\?/,""),te=e=>{if(null===$(e))return Y(ee(e));const t=ee(Z(e));return t?Y(t):{}},ne=(e,t)=>te(t)[e],ie=/^(?:https?:)?\/\/[^/]+\/([^?#]+)/,oe=e=>{const t=e.match(ie);return"/"+(t&&t[1]||"")},re=e=>e.replace(/\w/g,"$&[\\r\\n\\t]*");RegExp("^[\0-]*("+re("javascript")+"|"+re("data")+"):","i");const ae=/^((http(s)?:)?\/\/)/,se=/^((http(s)?:)?\/\/)/,ce=e=>{const t=e.match(se);return t?t[2]:null},le=(e,t)=>{if(-1===e.indexOf("?"))return e;const n=te(e);if(w(n))return e;if(Object.keys(n).every(e=>!t.includes(e)))return e;t.forEach(e=>delete n[e]);const[i]=e.split("?"),o=((e,t)=>{if(0===Object.keys(t).length)return e;const n=$(e),i=oe(e),o=Z(e)?te(e):{},r=X(T({},o,t));return e.indexOf("#")>-1?""+n+i+"?"+r+"#"+e.split("#")[1]:""+n+i+"?"+r})(i,n);return e.indexOf("#")>-1?o+"#"+e.split("#")[1]:o},de=e=>"https://"+(e=>e.replace(ae,""))(e),ue="cw_configurator";var me=e=>(t,n)=>{if(0!==t)return;if("function"!=typeof e)return n(0,()=>{}),void n(2);let i,o=!1;n(0,e=>{o||(o=2===e,o&&"function"==typeof i&&i())}),o||(i=e(e=>{o||n(1,e)},e=>{o||void 0===e||(o=!0,n(2,e))},()=>{o||(o=!0,n(2))}))};const pe=e=>(t,n)=>{if(0!==t)return;let i,o;function r(e,t){1===e&&(o||i)(1,t),2===e&&(o&&o(2),i&&i(2))}e(0,(e,t)=>{if(0===e)i=t,n(0,r);else if(1===e){const e=t;o&&o(2),e(0,(e,t)=>{0===e?(o=t,o(1)):1===e?n(1,t):2===e&&t?(i&&i(2),n(2,t)):2===e&&(i?(o=void 0,i(1)):n(2))})}else 2===e&&t?(o&&o(2),n(2,t)):2===e&&(o?i=void 0:n(2))})};var fe=function(e,t){return e===t};function he(e){return void 0===e&&(e=fe),function(t){return function(n,i){if(0===n){var o,r,a=!1;t(0,function(t,n){0===t&&(r=n),1===t?a&&e(o,n)?r(1):(a=!0,o=n,i(1,n)):i(t,n)})}}}}var ge=e=>t=>(n,i)=>{if(0!==n)return;let o;t(0,(t,n)=>{0===t?(o=n,i(t,n)):1===t?e(n)?i(t,n):o(1):i(t,n)})};var ve=e=>t=>{let n;t(0,(t,i)=>{0===t&&(n=i),1===t&&e(i),1!==t&&0!==t||n(1)})};const _e=(e,t,n)=>(i,o)=>{if(0!==i)return;let r=!1;const a=e=>{o(1,e)};o(0,i=>{2===i&&(r=!0,e.removeEventListener(t,a,n))}),r||e.addEventListener(t,a,n)};var we=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return(e,n)=>{if(0!==e)return;const i=t.length,o=Array(i);let r=0,a=0;const s=e=>{if(0!==e)for(let t=0;i>t;t++)o[t]&&o[t](e)};for(let e=0;i>e;e++)t[e](0,(t,c)=>{0===t?(o[e]=c,1===++r&&n(0,s)):2===t?(o[e]=void 0,++a===i&&n(2)):n(t,c)})}};function ye(e,t){return me(n=>(e.on(t,n),()=>{e.off(t,n)}))}!function(e){var t,n=e.Symbol;"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable"}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")());var be=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];let i=t[0];for(let e=1,n=t.length;n>e;e++)i=t[e](i);return i};var xe=e=>t=>(n,i)=>{if(0!==n)return;let o;t(0,(t,n)=>{0===t?(o=n,i(0,(e,t)=>{0!==e&&o(e,t)}),i(1,e)):i(t,n)})};var ke=e=>t=>(n,i)=>{0===n&&t(0,(t,n)=>{i(t,1===t?e(n):n)})};function Ce(e){return t=>pe(ke(e)(t))}var Ee=function(){};function Ie(e,t){0===e&&t(0,Ee)}function Ae(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return function(e,n){if(0===e){var i=!1;for(n(0,function(e){2===e&&(i=!0,t.length=0)});0!==t.length;)n(1,t.shift());i||n(2)}}}function Le(e){return function(t,n){if(0===t){var i,o,r,a=0;e(0,function(e,t){if(0===e&&(r=t),1===e){var s=[o,t];i=s[0],o=s[1],2>++a?r(1):n(1,[i,o])}else n(e,t)})}}}var Te=function(){},Pe={};function ze(e){var t,n,i=[],o=!1,r=Pe;return function(a,s){if(0===a){if(r!==Pe)return s(0,Te),o&&s(1,n),void s(2,r);i.push(s);var c=function(e,n){if(2!==e)r===Pe&&t(e,n);else{var o=i.indexOf(s);-1!==o&&i.splice(o,1)}};1!==i.length?(s(0,c),o&&r===Pe&&s(1,n)):e(0,function(e,a){if(0===e)return t=a,void s(0,c);1===e&&(o=!0,n=a);var l=i.slice(0);2===e&&(r=a,i=null),l.forEach(function(t){t(e,a)})})}}}var Se=e=>t=>(n,i)=>{if(0!==n)return;let o,r=0;t(0,(t,n)=>{0===t?(o=n,i(t,n)):1===t&&e>r?(r++,o(1)):i(t,n)})};const Oe=function(e){return void 0===e&&(e={}),t=>{"function"==typeof e&&(e={next:e});let n,{next:i,error:o,complete:r}=e;t(0,(e,t)=>{0===e&&(n=t),1===e&&i&&i(t),1!==e&&0!==e||n(1),2===e&&!t&&r&&r(),2===e&&t&&o&&o(t)});return()=>{n&&n(2)}}};var Me=e=>t=>(n,i)=>{if(0!==n)return;let o,r=0;function a(t,n){e>r&&o(t,n)}t(0,(t,n)=>{0===t?(o=n,i(0,a)):1===t?e>r&&(r++,i(t,n),r===e&&(i(2),o(2))):i(t,n)})};const De={},Fe=e=>t=>(n,i)=>{if(0!==n)return;let o,r,a=!1,s=De;t(0,(t,n)=>{if(0===t)return o=n,e(0,(e,t)=>0===e?(r=t,void r(1)):1===e?(s=void 0,r(2),o(2),void(a&&i(2))):void(2===e&&(r=null,t&&(s=t,o(2),a&&i(e,t))))),a=!0,i(0,(e,t)=>{s===De&&(2===e&&r&&r(2),o(e,t))}),void(s!==De&&i(2,s));2===t&&r(2),i(t,n)})};function Ne(e){return new Promise(function(t,n){Oe({next:t,error:n,complete:function(){var e=Error("No elements in sequence.");e.code="NO_ELEMENTS",n(e)}})(function(e){return function(t,n){if(0===t){var i,o,r=!1,a=!1;e(0,function(e,t){return 0===e?(i=t,void n(0,function(e,t){2===e&&(a=!0),i(e,t)})):1===e?(r=!0,o=t,void i(1)):void(2===e&&!t&&r&&(n(1,o),a)||n(e,t))})}}}(e))})}var Be=function(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}(function(e,t){function n(e,t){return e===t}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=null,o=null;return function(){return function(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var i=t.length,o=0;i>o;o++)if(!e(t[o],n[o]))return!1;return!0}(t,i,arguments)||(o=e.apply(null,arguments)),i=arguments,o}}function o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;t>o;o++)n[o-1]=arguments[o];return function(){for(var t=arguments.length,o=Array(t),r=0;t>r;r++)o[r]=arguments[r];var a=0,s=o.pop(),c=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"==typeof e})){var n=t.map(function(e){return typeof e}).join(", ");throw Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}(o),l=e.apply(void 0,[function(){return a++,s.apply(null,arguments)}].concat(n)),d=i(function(){for(var e=[],t=c.length,n=0;t>n;n++)e.push(c[n].apply(null,arguments));return l.apply(null,e)});return d.resultFunc=s,d.recomputations=function(){return a},d.resetRecomputations=function(){return a=0},d}}t.__esModule=!0,t.defaultMemoize=i,t.createSelectorCreator=o,t.createStructuredSelector=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;if("object"!=typeof e)throw Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map(function(t){return e[t]}),function(){for(var e=arguments.length,t=Array(e),i=0;e>i;i++)t[i]=arguments[i];return t.reduce(function(e,t,i){return e[n[i]]=t,e},{})})};var r=t.createSelector=o(i)}),je=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._cache={}}return e.prototype.set=function(e,t){this._cache[e]=t},e.prototype.get=function(e){return this._cache[e]},e.prototype.remove=function(e){delete this._cache[e]},e.prototype.clear=function(){this._cache={}},e}();function qe(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];var i=je;return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=void 0,r=void 0;"function"==typeof n?(console.warn('[re-reselect] Deprecation warning: "selectorCreator" argument is discouraged and will be removed in the upcoming major release. Please use "options.selectorCreator" instead.'),o=new i,r=n):(o=n.cacheObject||new i,r=n.selectorCreator||Be.createSelector);var a=function(){var n=e.apply(void 0,arguments);if("string"==typeof n||"number"==typeof n){var i=o.get(n);return void 0===i&&(i=r.apply(void 0,t),o.set(n,i)),i.apply(void 0,arguments)}};return a.getMatchingSelector=function(){var t=e.apply(void 0,arguments);return o.get(t)},a.removeMatchingSelector=function(){var t=e.apply(void 0,arguments);o.remove(t)},a.clearCache=function(){o.clear()},a.resultFunc=t[t.length-1],a}}const He=(e,t)=>t,We=(e,t)=>(e=>e.entities.chats.byIds)(e)[t],Re=qe([(e,t)=>We(e,t).events.orderedIds,(e,t)=>We(e,t).events.byIds],(e,t)=>e.map(e=>t[e]))(He),Ve=qe([We,Re],(e,t)=>T({},e,{events:t}))(He),Ue=e=>e.entities.users.byIds,Ge=e=>Ue(e)[(e=>e.session.id)(e)],Xe=(e,t)=>Ue(e)[t],Ye=e=>Ge(e).id;qe([Re,Ye],(e,t)=>m(e=>{let{delivered:n,author:i}=e;return n&&i===t},e))(He),qe([Re,Ye],(e,t)=>m(e=>{let{seen:n,author:i}=e;return n&&i===t},e))(He);const Je={boosters:!0,form:!0,system_message:!0};Be.createSelector([Re,e=>Ge(e).id],(e,t)=>{return function(e,t,n){for(let i=t;i>=0;i--)if(e(n[i]))return i;return-1}(e=>e.author===t&&"message"===e.type&&!(e.properties&&"file"===e.properties.serverType)||!0===e.seen&&!Je[e.type]&&!!e.serverId,(n=e).length-1,n);var n}),qe([(e,t)=>We(e,t).participants,Ue],(e,t)=>e.map(e=>t[e]))(He);function Ke(e,t){if(void 0===t)return e.application;return e.application[t]}var $e=(e,t)=>{f((e,n)=>{t.style[n]=e},e)},Qe=(e,t)=>{f((e,n)=>{"style"!==n?t.setAttribute(n,e):$e(e,t)},e)};const Ze=()=>!!document.documentElement.currentStyle,et=(e,t)=>{const i=window.getComputedStyle(t),o="border-box"===i.boxSizing,r=L(e,i);if(Ze()&&o&&n("width",r)&&null!==r.width){r.width=S([r.width,i.paddingLeft,i.paddingRight,i.borderLeftWidth,i.borderRightWidth].map(parseFloat))+"px"}if(Ze()&&o&&n("height",r)&&null!==r.height){r.height=S([r.height,i.paddingTop,i.paddingBottom,i.borderTopWidth,i.borderBottomWidth].map(parseFloat))+"px"}return r};function tt(){return new Promise(e=>{const t=()=>{document.body?e(document.body):setTimeout(t,100)};t()})}function nt(e){const{parentNode:t}=e;t&&t.removeChild(e)}const it=(e,t)=>{const n=document.createElement(e);return Qe(t,n),n},ot="chat-widget",rt="chat-widget-minimized",at="chat-widget-lightbox",st="LiveChat chat widget",ct="OpenWidget widget",lt={opacity:0,visibility:"hidden",zIndex:-1},dt={opacity:1,visibility:"visible",zIndex:2147483639},ut={id:ot+"-container",style:T({},lt,{position:"fixed",bottom:0,width:0,height:0,maxWidth:"100%",maxHeight:"100%",minHeight:0,minWidth:0,backgroundColor:"transparent",border:0,overflow:"hidden"})};T({},ut.style);const mt={id:"livechat-eye-catcher",style:{position:"fixed",visibility:"visible",zIndex:2147483639,background:"transparent",border:0,padding:"10px 10px 0 0",float:"left",marginRight:"-10px",webkitBackfaceVisibility:"hidden"}},pt={style:{position:"absolute",display:"none",top:"-5px",right:"-5px",width:"16px",lineHeight:"16px",textAlign:"center",cursor:"pointer",textDecoration:"none",color:"#000",fontSize:"20px",fontFamily:"Arial, sans-serif",borderRadius:"50%",backgroundColor:"rgba(255, 255, 255, 0.5)"}},ft={id:"livechat-eye-catcher-img",style:{display:"block",overflow:"hidden",cursor:"pointer"}},ht={alt:"",style:{display:"block",border:0,float:"right"}},gt={position:"absolute",top:"0px",left:"0px",bottom:"0px",right:"0px"},vt={id:ot,name:ot,title:st,scrolling:"no",style:{width:"100%",height:"100%","min-height":"0px","min-width":"0px",margin:"0px",padding:"0px","background-image":"none","background-position-x":"0%","background-position-y":"0%","background-size":"initial","background-attachment":"scroll","background-origin":"initial","background-clip":"initial","background-color":"rgba(0, 0, 0, 0)","border-width":"0px",float:"none","color-scheme":"light"}},_t={id:at,name:at,title:"Lightbox image preview",scrolling:"no",style:{position:"fixed",top:"0px",left:"0px",width:"100%",height:"100%",border:"none","z-index":"2147483647",background:"transparent","aria-hidden":"false",tabindex:"0"}},wt=T({},vt,{id:rt,name:rt}),yt=e=>"lc-aria-announcer-"+e;const bt="new_message",xt=e=>"function"==typeof e.start&&"function"==typeof e.stop,kt=e=>{xt(e)?e.start(0):e.noteOn(0)},Ct=()=>{const e=new(window.AudioContext||window.webkitAudioContext);let t=!0,n=[];const i=t=>new Promise((n,i)=>{e.decodeAudioData(t,n,i)}),o=t=>({play:()=>{const n=e.createBufferSource();n.connect(e.destination),n.buffer=t;return{playback:new Promise((t,i)=>{if(n.onended=()=>t(),kt(n),"running"!==e.state){const t=Error("Playback failed, AudioContext is in incorrect state '"+e.state+"'");t.name="PlaybackError",i(t)}}),stop(){(e=>{xt(e)?e.stop(0):e.noteOff(0)})(n)}}}});return{preload:e=>(e=>new Promise((t,n)=>{const i=new XMLHttpRequest;i.onload=()=>{t(i.response)},i.onerror=n,i.open("GET",e),i.responseType="arraybuffer",i.send()}))(e).then(i).then(o),playSound:e=>{const i=e.play();return t&&n.push(i),i.playback},unlock:()=>new Promise(i=>{const o=()=>{document.removeEventListener("click",o,!0),t&&(n.forEach(e=>{e.stop()}),n=[],t=!1),e.resume(),(()=>{const t=e.createBuffer(1,1,22050),n=e.createBufferSource();n.buffer=t,n.connect(e.destination),kt(n)})(),i()};document.addEventListener("click",o,!0)})}};const Et=/\.(\w+)$/i,It=new Audio,At={mp3:"audio/mpeg",ogg:"audio/ogg"},Lt=e=>{const t=(e=>{const t=e.match(Et);return t?t[1].toLowerCase():""})(e);return t in At&&""!==It.canPlayType(At[t])},Tt=e=>new Promise((t,n)=>{const i=new Audio(e);i.onloadeddata=()=>{t(i)},i.onerror=n}),Pt=e=>{const t=e.play();return(n=t)&&"function"==typeof n.then?t:Promise.resolve();var n};const zt=()=>"function"==typeof window.webkitAudioContext||"function"==typeof window.AudioContext?(()=>{const e=Ct(),t=I(t=>{const n=e.preload(t);return n.catch(A),n});return{play:n=>{const i=t(n).then(e.playSound);return i.catch(A),i},preload:t,unlock:()=>e.unlock()}})():(()=>{const e=I(Tt);return{play:t=>e(t).then(Pt),preload:e,unlock:()=>Promise.resolve()}})(),St=e=>Object.keys(e).reduce((t,n)=>{const i=u(e=>Lt(e),o(r=e[n])?r:[r]);var r;return t[n]=i,t},{});const Ot=()=>{const e=(e=>{const t=zt(),n=St(e);return{play:e=>{t.play(n[e]).then(A,A)},preload:e=>{t.preload(n[e]).then(A,A)},unlock:()=>t.unlock()}})({[bt]:["https://cdn.livechatinc.com/widget/static/media/new_message.CTorF0S8.ogg","https://cdn.livechatinc.com/widget/static/media/new_message.C32z5SiC.mp3"]});return D&&(window.parent.soundPlayer=e),e.unlock().then(()=>function(e,t){let n=0;return function(){const i=Date.now();e>i-n||(n=Date.now(),t.apply(void 0,arguments))}}(2e3,t=>{e.play(t)}))},Mt={isBridgeActive:!1,isIframeActive:null,hasIframeUnlocked:!1},Dt=e=>!!e&&/native code/.test(e+""),Ft=()=>_(navigator.platform,["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"])&&_("Version/15",navigator.userAgent),Nt=()=>/mobile/gi.test(navigator.userAgent)&&!("MacIntel"===navigator.platform&&_("iPad",navigator.userAgent)),Bt=()=>_("Chrome",navigator.userAgent),jt=()=>{const e=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return e?parseInt(e[2],10):0},qt=()=>/Firefox/.test(navigator.userAgent),Ht=(e,t)=>Ke(e,"visibility").state===t;function Wt(e,t){if(null==e)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}const Rt={25:"#EDDDBF",50:"#FFFAE5",100:"#F7C56E",500:"#FFD000",700:"#7B664C",800:"#3A352C"},Vt={100:"#FF7C6B",500:"#D93311"},Ut={100:"#77Cf9D",500:"#268750"},Gt={100:"#FA6681",500:"#E30D34"},Xt={0:"#FFFFFF",15:"#F6F6F7",25:"#F0F0F0",50:"#F8F8F8",75:"#EDEDED",100:"#E3E3E3",200:"#D5D5D5",300:"#C0C0C0",400:"#B3B3B3",425:"#A6A4A4",450:"#949494",500:"#757575",525:"#707070",550:"#6E6E6E",600:"#575757",625:"#474747",650:"#333333",700:"#2E2E2E",800:"#252525",900:"#111111"};var Yt=Object.freeze({__proto__:null,yellow:Rt,red:Vt,green:Ut,ruby:Gt,accent:"#2000F0",webkitOutline:"#3B99FC",grayscale:Xt,brand:{orange:"#FF5100",black:"#1B1B20"}});const Jt=T({},Yt,{border:Xt[500],borderInteractive:"#7A7A7A",borderSubtle:Xt[100],divider:Xt[100],error:Vt[500],errorContrast:Xt[0],errorSurface:"#FFFAFA",subtleFeedback:Rt[50],subtleFeedbackContrast:Xt[900],caution:"#FFAE21",cautionDimmed:"#FFF3D6",cautionContrast:Xt[900],cautionDesaturated:Rt[25],chatBackground:"#F6F6F7",success:Ut[500],successContrast:Xt[0],successSurface:Xt[0],primaryTextColor:Xt[900],secondaryTextColor:Xt[550],tertiaryTextColor:Xt[400],surface:Xt[0],surfaceVariant:Xt[25],surfaceVariantHover:"#E6E6E6",surfaceInteractive:Xt[75],surfaceInteractivePressed:Xt[600],surfaceDecorative:Xt[100],surfaceDimmed:"#E6E4E1",surfaceFade:Xt[15],hintSurface:Xt[800],floatSurface:Xt[0],pressedElement:Xt[300],notification:Gt[500],notificationContrast:Xt[0],widgetBackground:Xt[50],disabled:Xt[100],disabledContrast:Xt[600],inactiveElement:Xt[450],formIconColor:Xt[50],trademarkFooterText:Xt[600],itemHover:Xt[625],successHover:"#2FA763",inactiveElementHover:Xt[425],secondaryButtonBackground:Xt[100],secondaryButtonBackgroundHover:Xt[200],primaryTimelineSurface:Xt[0],decorations:{decorOne:"#FFDAB9",decorTwo:"#D9CCFA",decorThree:"#FACCCC",decorFour:"#F4F791",decorFive:"#F1C9FC"}}),Kt=T({},Yt,{border:Xt[600],borderInteractive:"#8F8F8F",borderSubtle:Xt[650],divider:Xt[700],error:Vt[100],errorContrast:Xt[900],errorSurface:"#570404",subtleFeedback:Rt[800],subtleFeedbackContrast:Rt[100],caution:Rt[100],cautionDimmed:"#322B24",cautionContrast:Xt[900],cautionDesaturated:Rt[700],chatBackground:"#1A1A1A",success:Ut[100],successContrast:Xt[900],successSurface:"#042602",primaryTextColor:Xt[0],secondaryTextColor:Xt[400],tertiaryTextColor:Xt[600],surface:Xt[800],surfaceVariant:Xt[700],surfaceVariantHover:"#333333",surfaceInteractive:Xt[700],surfaceInteractivePressed:Xt[400],surfaceDecorative:Xt[700],surfaceDimmed:"#1F1E1D",surfaceFade:Xt[700],hintSurface:Xt[550],floatSurface:Xt[700],pressedElement:Xt[600],notification:Gt[100],notificationContrast:Xt[900],widgetBackground:Xt[900],disabled:Xt[700],disabledContrast:Xt[400],inactiveElement:Xt[600],formIconColor:Xt[900],trademarkFooterText:Xt[400],itemHover:Xt[525],successHover:"#99DBB5",inactiveElementHover:Xt[800],secondaryButtonBackground:Xt[650],secondaryButtonBackgroundHover:Xt[625],primaryTimelineSurface:Xt[800],decorations:{decorOne:"#D7650F",decorTwo:"#400CC6",decorThree:"#AF3C3C",decorFour:"#ACB125",decorFive:"#831AA2"}});var $t=Object.freeze({__proto__:null,light:Jt,dark:Kt});!function(e){const t=function(e){try{return window.localStorage}catch(t){return"SecurityError"===t.name&&e?e:U()?window.localStorage:G}}(e)}();const Qt=["all"],Zt=()=>{const e={all:i=i||new Map,on:function(e,t){var n=i.get(e);n?n.push(t):i.set(e,[t])},off:function(e,t){var n=i.get(e);n&&(t?n.splice(n.indexOf(t)>>>0,1):i.set(e,[]))},emit:function(e,t){var n=i.get(e);n&&n.slice().map(function(e){e(t)}),(n=i.get("*"))&&n.slice().map(function(n){n(e,t)})}},{all:t}=e,n=Wt(e,Qt);var i;return T({},n,{off:(e,i)=>{e?n.off(e,i):t.clear()},once:(e,t)=>{n.on(e,function i(o,r){n.off(e,i),t(o,r)})}})};function en(e,t){let{retriesCount:n=1/0,minTime:i=100,maxTime:o=1e4}=void 0===t?{}:t;const r=(e=>{let{min:t=1e3,max:n=5e3,jitter:i=.5}=e,o=0;return{duration:()=>{let e=t*Math.pow(2,o++);if(i){const t=Math.random(),n=Math.floor(t*i*e);e=1&Math.floor(10*t)?e+n:e-n}return 0|Math.min(e,n)},reset:()=>{o=0}}})({min:i,max:o,jitter:0});return new Promise((t,i)=>{let o=0;const a=()=>e().then(t,()=>{n===1/0||o++e.map(e=>{switch(e.type){case"group_chooser":return T({},e,{options:e.options.map(e=>{let{group_id:t}=e;return T({},Wt(e,tn),{groupId:t})})});case"rating":{const{comment_label:t}=e;return T({},Wt(e,nn),{commentLabel:t})}default:return e}}),rn=e=>{const t=e.map((e,t)=>T({},e,{id:t+""}));return on(t)},an=e=>({id:e.id,fields:!("id"in e.fields[0])?rn(e.fields):on(e.fields)}),sn={};function cn(e,t){let{query:n={},jsonpParam:i="jsonp",callbackName:o}=void 0===t?{}:t;return new Promise((t,r)=>{tt().then(a=>{const s=document.createElement("script"),c=o||g(sn);sn[c]=!0;const l="__"+c;window[l]=e=>{delete sn[c],delete window[l],nt(s),t(e)},s.src=e+"?"+X(T({},n,{[i]:l})),s.addEventListener("error",()=>{setTimeout(()=>r(Error("JSONP request failed.")),100)}),a.appendChild(s)})})}const ln=["buttons","allowed_domains","prechat_form","ticket_form","__priv","properties"],dn=["staticConfig","localization"],un=/\.([a-z]{1,})$/i,mn=e=>{let{__priv:t}=e;const n={enabled:!0,x:parseInt(t.group["embedded_chat.eye_grabber.x"])+15,y:parseInt(t.group["embedded_chat.eye_grabber.y"]),src:de(t.group["embedded_chat.eye_grabber.path"])};if(-1!==n.src.indexOf("/default/eyeCatchers/")){const e=n.src.match(un)[1];n.srcset={"1x":n.src,"2x":n.src.replace(RegExp("\\."+e,"i"),"-2x."+e)}}return n},pn=e=>{var t;return{"x-region":null!=(t=e.region)?t:""}},fn=e=>{let{region:t}=e;return"https://api"+(e=>"fra"===e||e===q?"-fra":"")(t)+".livechatinc.com"},hn=(e,t)=>fn(t)+"/v3.6/customer/action/"+e,gn=function(e,t){let{validateDefaultWidget:n=!0}=void 0===t?{}:t;return cn(hn("get_dynamic_configuration",e),{query:T({},pn(e),e.organizationId?{organization_id:e.organizationId}:{},e.licenseId?{license_id:e.licenseId}:{},{client_id:null!="c5e4f61e1a6c3b1521b541bc5c5a2ac5"?"c5e4f61e1a6c3b1521b541bc5c5a2ac5":"",url:le(e.url,["cw_configurator","dev_language","dev_enable_textapp","dev_theme_variant","dev_theme_name","dev_minimized_type","dev_screen_position","dev_offset_x","dev_offset_y","dev_show_logo","dev_show_avatar","dev_sounds_enabled","dev_rating_enabled","dev_transcript_enabled","dev_company_logo_url","dev_agent_avatar_url"])},"number"==typeof e.groupId&&{group_id:e.groupId},e.channelType&&{channel_type:e.channelType},e.skipCodeInstallationTracking&&{test:1},e.productName&&{origin:e.productName},e.integrationName&&{implementation_type:e.integrationName})}).then(t=>{if(t.error)switch(t.error.type){case"misdirected_request":return gn(T({},e,{region:t.error.data.region}));case"license_not_found":{if("direct_link"===e.channelType){const t=X({utm_source:"expired_chat_link",utm_medium:"referral",utm_campaign:"lc_"+e.licenseId});window.location.replace("https://www.livechat.com/expired-chat-link/?"+t)}const t=Error("License not found");throw t.code="LICENSE_NOT_FOUND",t}default:{const e=Error(t.error.message);throw e.code=t.error.type.toUpperCase(),e}}if(19196658!==e.licenseId&&"4c8c0751-837f-4a11-928e-047b2d095307"!==e.organizationId||(t.default_widget="livechat"),n&&"livechat"!==t.default_widget){const e=Error("The 'default_widget' is not 'livechat', but instead: '"+t.default_widget+"'");throw e.code="DEFAULT_WIDGET_NOT_LIVECHAT",e.organizationId=t.organization_id,e.defaultWidget=t.default_widget,e}if(!t.livechat_active){if("direct_link"===e.channelType){const t=X({utm_source:"expired_chat_link",utm_medium:"referral",utm_campaign:"lc_"+e.licenseId});window.location.replace("https://www.livechat.com/expired-chat-link/?"+t)}const t=Error("License expired");throw t.code="LICENSE_EXPIRED",t}if(!t.livechat.domain_allowed){const e=Error("Current domain is not added to the allowlist.");throw e.code="DOMAIN_NOT_ALLOWED",e}return{organizationId:(i=t).organization_id,groupId:i.livechat.group_id,clientLimitExceeded:i.livechat.client_limit_exceeded,configVersion:i.livechat.config_version,localizationVersion:i.livechat.localization_version,onlineGroupIds:i.livechat.online_group_ids||[],region:e.region||null,language:i.livechat.language};var i})},vn=e=>{var t,n;const i="feade1d6c3f17748ae4c8d917a1e1068",o=!!(null==(t=e.properties.group[i])?void 0:t.forwardTicketFormToHelpdesk),r=null==(n=e.properties.license[i])?void 0:n.hdLicenseID;return"number"==typeof r&&r>-1&&(o||"1"===e.__priv.license["helpdesk.inbound_forwarding"])},_n=(e,t)=>t.includes(e)?e:t[0],wn=(e,t)=>e,yn=e=>{const{buttons:t,allowed_domains:n,prechat_form:i,ticket_form:o,__priv:r,properties:a}=e,s=Wt(e,ln),c=r.group,l=wn("boolean"==typeof r.enable_textapp?r.enable_textapp:void 0),d=wn(_n(c["chat_window.new_theme.name"],["smooth","modern"])),u=wn(_n(c["chat_window.new_theme.variant"],["light","dark"])),m=c["chat_window.new_theme.background_color"],p=wn(_n(c["chat_window.theme.minimized"],["circle","bar"])),f=wn("1"===c["chat_window.display_avatar"]),h=wn("0"===c["chat_window.disable_sounds"]),g=wn("1"===c["rate_me.enabled"]),v=wn("1"===c["chat_window.display_transcript_button"]),_=wn("1"===c["chat_window.display_logo"]),w=wn(c["chat_window.logo_path"]),y=wn(c.language),b=wn(_n(c["chat_window.screen_position"],["right","left"])),x=wn(parseInt(c["chat_window.offset_x"])),k=wn(parseInt(c["chat_window.offset_y"])),C="0"===r.group.tickets_enabled,E=!!!r.disable_native_tickets&&!!o,I=vn(e),A=C||I||E;return T({},s,i&&{prechatForm:an(i)},A&&o&&{ticketForm:an(o)},{properties:a,buttons:t.map(e=>"image"===e.type?{id:e.id,type:e.type,onlineValue:de(e.online_value),offlineValue:de(e.offline_value)}:{id:e.id,type:e.type,onlineValue:e.online_value,offlineValue:e.offline_value})},n&&{allowedDomains:n},{__unsafeProperties:T({},r.s&&{s:!0},"boolean"==typeof l?{enableTextApp:l}:{},{group:{chatBoosters:r.group.chat_boosters,disabledMinimized:"1"===r.group["chat_window.disable_minimized"],disabledMinimizedOnMobile:"1"===r.group["chat_window.mobile_disable_minimized"],disabledOnMobile:"1"===r.group["chat_window.hide_on_mobile"],eyeCatcher:"1"===r.group["embedded_chat.display_eye_catcher"]?mn(e):{enabled:!1},hasAgentAvatarsEnabled:f,hasCustomMobileSettings:"1"===r.group["chat_window.custom_mobile_settings"],hasHiddenTrademark:"1"===r.group["chat_window.hide_trademark"],hasSoundsEnabled:h,initiallyHidden:"1"===r.group["chat_window.hide_on_init"]||"1"===r.group["chat_window.disable_minimized"],initiallyHiddenOnMobile:"1"===r.group["chat_window.mobile_hide_on_init"]||"1"===r.group["chat_window.mobile_disable_minimized"],hideOnInit:"1"===r.group["chat_window.hide_on_init"],language:y,linksUnfurlingEnabled:"1"===r.group.links_unfurling,privacyPolicy:{enabled:"1"===r.group["privacy_policy.enabled"],text:r.group["privacy_policy.text"]},logo:_?{enabled:!0,src:w}:{enabled:!1},minimizedType:p,minimizedTypeOnMobile:r.group["chat_window.mobile_minimized_theme"],offlineMessagesEnabled:C,offsetX:x,offsetXOnMobile:parseInt(r.group["chat_window.mobile_offset_x"]),offsetY:k,offsetYOnMobile:parseInt(r.group["chat_window.mobile_offset_y"]),prechatFormAfterGreetingEnabled:"1"===r.group.pre_chat_survey_after_greeting,ratingEnabled:g,screenPosition:b,screenPositionOnMobile:_n(r.group["chat_window.mobile_screen_position"],["right","left"]),transcriptButtonEnabled:v,theme:{name:d,variant:u,customJson:r.group["chat_window.new_theme.custom_json"],agentbarBackgroundColor:r.group["chat_window.new_theme.agentbar_background_color"],agentbarText:r.group["chat_window.new_theme.agentbar_text"],agentMessageColorBackground:r.group["chat_window.new_theme.agent_message_color_background"],agentMessageColorText:r.group["chat_window.new_theme.agent_message_color_text"],backgroundColor:m,ctaColor:r.group["chat_window.new_theme.cta_color"],minimizedColorBackground:r.group["chat_window.new_theme.minimized_color_background"],minimizedColorIcon:r.group["chat_window.new_theme.minimized_color_icon"],minimizedColorText:r.group["chat_window.new_theme.minimized_color_text"],systemMessageColor:r.group["chat_window.new_theme.system_message_color"],titlebarBackgroundColor:r.group["chat_window.new_theme.titlebar_background_color"],titlebarText:r.group["chat_window.new_theme.titlebar_text"],visitorMessageColorBackground:r.group["chat_window.new_theme.visitor_message_color_background"],visitorMessageColorText:r.group["chat_window.new_theme.visitor_message_color_text"]}},license:{creditCardMaskingEnabled:"1"===r.license.mask_credit_cards,nonProfit:"1"===r.license.non_profit,licenseinboundForwardingToHelpdeskEnabled:"1"===r.license["helpdesk.inbound_forwarding"]},helpdeskIntegrationEnabled:I,ticketFormMode:(L=e,vn(L)?"helpdesk":"0"===L.__priv.group.tickets_enabled?"offline_message":"livechat")})});var L},bn=(e,t,n,i,o)=>{const r="https://api.openwidget.com/v1.0/configuration/"+e;return en(()=>cn(r,{callbackName:"ow_config",query:T({},t&&{integration_name:t},n&&{tid:n},i&&{test:!0},o&&{url:o})}).then(t=>{let{staticConfig:n,localization:i}=t;return T({},Wt(t,dn),yn(n),{localization:k(e=>e.toLowerCase(),i),organizationId:e})}),{minTime:500,maxTime:5e3,retriesCount:20})},xn=e=>{const t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.opacity="0",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)},kn="data-lc-focus",Cn="data-lc-event",En="data-lc-prop",In="data-lc-action",An="data-lc-action-value",Ln="data-lc-action-success";let Tn=A;function Pn(e,t,n,i){var o;const r=n.contentDocument,a=null!=(o=i.state.application.language)?o:"en";if(null===r)throw Error("Parameter `frame` needs to be inserted into any document before rendering");Bt()?(r.documentElement.lang=a,r.head.innerHTML=e,r.body.innerHTML=t):(r.open(),r.write('\n\t\t\t\n\t\t\t\n\t\t\t\t'+e+"\n\t\t\t\t"+t+"\n\t\t\t\n\t\t"),r.close());const s=r.documentElement,c=O(s.querySelectorAll("["+Cn+"]"));for(const e of c){const t=e.getAttribute(Cn);if("string"==typeof t)for(const n of t.split(";")){const[t,o]=n.split(":");t&&o&&(e.removeAttribute(Cn),e.addEventListener(t,n=>{n.stopPropagation();const r=n.currentTarget,a=n.target,s=T({type:n.type,bubbles:!0,isTrusted:n.isTrusted,cancelBubble:n.cancelBubble,cancelable:n.cancelable,composed:n.composed,defaultPrevented:n.defaultPrevented,eventPhase:n.eventPhase,timeStamp:n.timeStamp},"clientX"in n&&{clientX:n.clientX,clientY:n.clientY},{currentTarget:T({value:null==r?void 0:r.value,checked:null==r?void 0:r.checked,disabled:null==r?void 0:r.disabled,draggable:null==r?void 0:r.draggable,hidden:null==r?void 0:r.hidden,naturalWidth:null==r?void 0:r.naturalWidth,naturalHeight:null==r?void 0:r.naturalHeight,clientWidth:null==r?void 0:r.clientWidth,clientHeight:null==r?void 0:r.clientHeight},"function"==typeof(null==r?void 0:r.getBoundingClientRect)&&{boundingClientRect:r.getBoundingClientRect().toJSON()}),target:{value:null==a?void 0:a.value,checked:null==a?void 0:a.checked,disabled:null==a?void 0:a.disabled,draggable:null==a?void 0:a.draggable,hidden:null==a?void 0:a.hidden}});if("click"===t&&"copy"===e.getAttribute(In)){c=e.getAttribute(An),navigator.clipboard?navigator.clipboard.writeText(c).catch(xn):xn(c);const t=e.getAttribute(Ln);return t&&(e.innerHTML=t),void i.call("crossFrameEvent",o,JSON.stringify(s))}var c;i.call("crossFrameEvent",o,JSON.stringify(s))}))}}const l=s.querySelector("["+kn+"]");if(l&&(l.removeAttribute(kn),l.focus(),"INPUT"===l.nodeName)){l.setSelectionRange(l.value.length,l.value.length)}const d=[],u=O(s.querySelectorAll("["+En+"]"));for(const e of u){const t=e.getAttribute(En);if("string"!=typeof t)continue;e.removeAttribute(En);const[n,i]=t.split(":");d.push(t=>{var o;let r=null==(o=t.views)||null==(o=o.minimized)?void 0:o[i.replace("!","")];"string"==typeof r&&(r=r.trim()),"disabled"===n&&(r=i.includes("!")?!r:!!r),"boolean"==typeof r?e.toggleAttribute(n,r):r?e.setAttribute(n,r):e.removeAttribute(n)})}d.forEach(e=>e(i.state)),i.off("state_diff",Tn),Tn=e=>{var t;null!=e&&null!=(t=e.views)&&t.minimized&&d.forEach(t=>t(e))},i.on("state_diff",Tn)}const zn=e=>{let{allowAutoplay:t,allowVideoConferencing:n,allowClipboardWrite:i,allowDisplayCapture:o}=e,r=["clipboard-read; clipboard-write;"];if(t&&!qt()&&r.push("autoplay;"),o&&r.push("display-capture *;"),n){const e={"display-capture *;":!Bt()||jt()>=94,"picture-in-picture *;":"PictureInPictureEvent"in window,"fullscreen *;":"function"==typeof Element.prototype.requestFullscreen};r=[].concat(r,["microphone *;","camera *;"],Object.keys((s=Boolean,a(c=e).reduce((e,t)=>(s(c[t])&&(e[t]=c[t]),e),{}))))}var s,c;return i&&!qt()&&r.push("clipboard-write *;"),r.join(" ")},Sn=e=>e.replace(/\?+$/,""),On="cubic-bezier(0.25, 1, 0.5, 1)",Mn="width 300ms "+On+", height 300ms "+On,Dn=D?100:2e3;let Fn=null;const Nn=()=>{if(Fn)throw Error("Title notification service already initialized");Fn=(()=>{try{let e,t=document.title,n=null;const i=document.querySelector("title");return i&&new MutationObserver(e=>{const i=e[0].target.textContent;i&&![t,n].includes(i)&&(t=i)}).observe(i,{subtree:!0,characterData:!0,childList:!0}),{setTitleNotification:i=>{i!==n&&(n=i,t=document.title,document.title=n,clearInterval(e),e=window.setInterval(()=>{document.title=document.title===t&&n?n:t},Dn))},clearTitleNotification:()=>{document.title=t,clearInterval(e),n=null},getOriginalPageTitle:()=>t}}catch(e){return console.error("Error while creating title notification service",e),null}})()},Bn=()=>{if(!Fn)throw Error("Title notification service not initialized");return Fn},jn=e=>{var t,n;const i=["http:","https:"];return!i.includes(null!=(t=ce(e))?t:"")&&i.includes(null!=(n=ce(document.referrer))?n:"")?document.referrer:e},qn=()=>({title:Fn?Fn.getOriginalPageTitle():document.title,url:Sn(jn(document.location+"")),referrer:document.referrer}),Hn=e=>{be(function(e,t){return me(n=>{const i=new MutationObserver(n);return i.observe(e,t),()=>{i.disconnect()}})}(document.body,{childList:!0,subtree:!0}),ke(qn),he((e,t)=>e.url===t.url),Fe(ye(e,"unbind")),ve(t=>{e.call("storeMethod",["setApplicationState",{page:t}])}))},Wn="lightbox-images-container",Rn=function(e,t,n,i){var o;void 0===i&&(i=!1);const r=e.indexOf(t);if(-1===r)return null;let a;return a="previous"===n?i?(r-1+e.length)%e.length:r-1:i?(r+1)%e.length:r+1,null!=(o=e[a])?o:null},Vn="application/x-postmate-v1+json";let Un=0;const Gn={handshake:1,"handshake-reply":1,call:1,emit:1,reply:1,request:1},Xn=(e,t)=>("string"!=typeof t||e.origin===t)&&(!!e.data&&("object"==typeof e.data&&("postmate"in e.data&&(e.data.type===Vn&&!!Gn[e.data.postmate]))));let Yn=function(){function e(e){this.parent=e.parent,this.frame=e.frame,this.child=e.child,this.childOrigin=e.childOrigin,this.events={},this.listener=e=>{if(!Xn(e,this.childOrigin))return!1;const{data:t,name:n}=((e||{}).data||{}).value||{};"emit"===e.data.postmate&&n in this.events&&this.events[n].call(this,t)},this.parent.addEventListener("message",this.listener,!1)}var t=e.prototype;return t.get=function(e){return new Kn.Promise(t=>{const n=++Un,i=e=>{e.data.uid===n&&"reply"===e.data.postmate&&(this.parent.removeEventListener("message",i,!1),t(e.data.value))};this.parent.addEventListener("message",i,!1),this.child.postMessage({postmate:"request",type:Vn,property:e,uid:n},this.childOrigin)})},t.call=function(e,t){this.child.postMessage({postmate:"call",type:Vn,property:e,data:t},this.childOrigin)},t.on=function(e,t){this.events[e]=t},t.destroy=function(){window.removeEventListener("message",this.listener,!1),this.frame.parentNode.removeChild(this.frame)},e}(),Jn=function(){function e(e){this.model=e.model,this.parent=e.parent,this.parentOrigin=e.parentOrigin,this.child=e.child,this.child.addEventListener("message",e=>{if(!Xn(e,this.parentOrigin))return;const{property:t,uid:n,data:i}=e.data;"call"!==e.data.postmate?((e,t)=>{const n="function"==typeof e[t]?e[t]():e[t];return Kn.Promise.resolve(n)})(this.model,t).then(i=>e.source.postMessage({property:t,postmate:"reply",type:Vn,uid:n,value:i},e.origin)):t in this.model&&"function"==typeof this.model[t]&&this.model[t].call(this,i)})}return e.prototype.emit=function(e,t){this.parent.postMessage({postmate:"emit",type:Vn,value:{name:e,data:t}},this.parentOrigin)},e}(),Kn=function(){function e(e){let{container:t=(void 0!==t?t:document.body),model:n,url:i,iframeAllowedProperties:o}=e;return this.parent=window,this.frame=document.createElement("iframe"),o&&(this.frame.allow=o),t.appendChild(this.frame),this.child=this.frame.contentWindow||this.frame.contentDocument.parentWindow,this.model=n||{},this.sendHandshake(i)}return e.prototype.sendHandshake=function(t){const n=(e=>{const t=document.createElement("a");t.href=e;const n=t.protocol.length>4?t.protocol:window.location.protocol,i=t.host.length?"80"===t.port||"443"===t.port?t.hostname:t.host:window.location.host;return t.origin||n+"//"+i})(t);let i,o=0;return new e.Promise((e,r)=>{const a=t=>!!Xn(t,n)&&("handshake-reply"===t.data.postmate?(clearInterval(i),this.parent.removeEventListener("message",a,!1),this.childOrigin=t.origin,e(new Yn(this))):r("Failed handshake"));this.parent.addEventListener("message",a,!1);const s=()=>{o++,this.child.postMessage({postmate:"handshake",type:Vn,model:this.model},n),5===o&&clearInterval(i)},c=()=>{s(),i=setInterval(s,500)};this.frame.attachEvent?this.frame.attachEvent("onload",c):this.frame.addEventListener("load",c),this.frame.src=t})},e}();Kn.debug=!1,Kn.Promise=(()=>{try{return window?window.Promise:Promise}catch(e){return null}})(),Kn.Model=function(){function e(e){return this.child=window,this.model=e,this.parent=this.child.parent,this.sendHandshakeReply()}return e.prototype.sendHandshakeReply=function(){return new Kn.Promise((e,t)=>{const n=i=>{if(i.data.postmate){if("handshake"===i.data.postmate){this.child.removeEventListener("message",n,!1),i.source.postMessage({postmate:"handshake-reply",type:Vn},i.origin),this.parentOrigin=i.origin;const t=i.data.model;return t&&Object.keys(t).forEach(e=>{this.model[e]=t[e]}),e(new Jn(this))}return t("Handshake Reply Failed")}};this.child.addEventListener("message",n,!1)})},e}();const $n=["methods"];Kn.Promise=Promise;let Qn=function(e){let{methods:t}=e,n=Wt(e,$n);return new Kn(n).then(e=>{const n=e.on,o=e.call,r=function(){for(var t=arguments.length,n=Array(t),i=0;t>i;i++)n[i]=arguments[i];return o.apply(e,n)},a=Zt(),s={},c={};return t.resolveRemoteCall=e=>{let{id:t,value:n}=e;const i=c[t];delete c[t],i(n)},e.on=(t,i)=>{a.on(t,i),s[t]||(s[t]=!0,function(){for(var t=arguments.length,i=Array(t),o=0;t>o;o++)i[o]=arguments[o];n.apply(e,i)}(t,e=>{a.emit(t,e)}))},e.off=a.off,e.on("remote-call",n=>{let{id:i,method:o,args:a}=n;const s="function"==typeof t[o]?t[o].apply(e,a):void 0;s&&"function"==typeof s.then?s.then(e=>{r("resolveRemoteCall",{id:i,value:e})}):r("resolveRemoteCall",{id:i,value:s})}),e.emit=(e,t)=>{r("emitEvent",{event:e,data:t})},e._emit=a.emit,e.call=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;t>i;i++)n[i-1]=arguments[i];return new Promise(t=>{const i=g(c);c[i]=t,r("remoteCall",{id:i,method:e,args:n})})},i(e,t)})};const Zn=window.Wix;var ei=()=>new Promise(e=>{Zn.getSiteInfo(t=>{let n=t.url;const i=t.referrer||t.referer||"";t.baseUrl&&-1===n.indexOf(t.baseUrl)&&(n=t.baseUrl);e({title:t.pageTitle,referrer:i,url:n})})});const ti=Promise.resolve(),ni=e=>{ti.then(e)},ii=e=>ni(()=>{throw e});function oi(e,t){return pe((n=()=>be(ye(e,"state_diff"),ke(()=>e.state),xe(e.state),ke(t),he(z),Fe(ye(e,"unbind"))),(e,t)=>{if(0===e){let e=!1;t(0,t=>{2===t&&(e=!0)}),t(1,n()),e||t(2)}}));var n}const ri=(e,t)=>be(oi(e,t),Se(1));function ai(e){return be(oi(e,e=>Ke(e,"availability")),ge(b))}const si="liveChatChatId";function ci(e){return be(oi(e,e=>Ve(e,si).active),Se(1),Ce(t=>t?be(oi(e,e=>Ve(e,si).properties.currentAgent),ge(Boolean),ke(()=>t),Me(1)):Ae(t)))}function li(e,t){return be(ye(e,"state_diff"),ke(()=>Ke(e.state,"readyState")),ge(e=>e===t),Me(1),ze)}function di(e,t){return be(li(e,B),Ce(t))}function ui(e,t){return be(li(e,j),Ce(t))}function mi(e,t){return be(oi(e,e=>Ke(e,"invitation")),ke(e=>e[t]),ge(b),Le,ge(e=>{let[t,n]=e;return n.length>t.length}),ke(e=>{let[,t]=e;return x(t)}))}const pi=()=>window.GoogleAnalyticsObject||"ga",fi=e=>{let{event:t,label:n,nonInteraction:i,trackerName:o}=e;const r=window[pi()];r&&"function"==typeof r&&r([o,"send"].filter(Boolean).join("."),{hitType:"event",eventCategory:"LiveChat",eventAction:t,eventLabel:n,nonInteraction:i})},hi={ga:fi,gaAll:e=>{const t=window[pi()];if(!t||"function"!=typeof t.getAll)return;const n=t.getAll();o(n)&&n.forEach(t=>{fi(T({},e,{trackerName:t&&"function"==typeof t.get?t.get("name"):null}))})},gaq:e=>{let{event:t,label:n,nonInteraction:i}=e;const o=window._gaq;o&&"function"==typeof o.push&&o.push(["_trackEvent","LiveChat",t,n,null,i])},gtm:e=>{let{event:t,label:n,nonInteraction:i}=e;const o=window.dataLayer;o&&"function"==typeof o.push&&o.push({event:"LiveChat",eventCategory:"LiveChat",eventAction:t,eventLabel:n,nonInteraction:i})},pageTracker:e=>{let{event:t,label:n,nonInteraction:i}=e;const o=window.pageTracker;o&&"function"==typeof o._trackEvent&&o._trackEvent("LiveChat",t,n,null,i)},urchinTracker:e=>{let{event:t}=e;const n=window.urchinTracker;n&&"function"==typeof n&&n(t)},gtag:e=>{let{event:t,label:n,nonInteraction:i}=e;const o=window.gtag;o&&"function"==typeof o&&o("event",t,{event_category:"LiveChat",event_label:n,non_interaction:i})}},gi=e=>{let{version:t,omitGtm:n,sendToAll:i}=e;if(t&&"function"==typeof hi[t])return i&&"ga"===t?"gaAll":t;if("object"==typeof window.pageTracker&&"function"==typeof window.pageTracker._trackEvent)return"pageTracker";if("function"==typeof window.urchinTracker)return"urchinTracker";if("function"==typeof window.gtag)return"gtag";if(!n&&"object"==typeof window.dataLayer&&"function"==typeof window.dataLayer.push)return"gtm";if("object"==typeof window._gaq)return"gaq";if(window.GoogleAnalyticsObject&&"string"==typeof window.GoogleAnalyticsObject)return i?"gaAll":"ga";if("function"==typeof window.ga){let e=!1;if(window.ga(t=>{e="object"==typeof t}),e)return i?"gaAll":"ga"}return null},vi={Chat:"LiveChat Chat started","Automated greeting":"LiveChat Automated greeting displayed","Ticket form":"LiveChat Ticket form displayed","Ticket form filled in":"LiveChat Ticket form filled in","Pre-chat survey":"LiveChat Pre-chat survey displayed","Pre-chat survey filled in":"LiveChat Pre-chat survey filled in","Post-chat survey":"LiveChat Post-chat survey displayed","Post-chat survey filled in":"LiveChat Post-chat survey filled in"},_i=()=>window.mixpanel&&"function"==typeof window.mixpanel.track&&"function"==typeof window.mixpanel.register,wi={googleAnalytics:e=>{let{trackerName:t}=e;return t?hi[t]:null},kissmetrics:()=>null,mixpanel:()=>{if(!_i())return null;return e=>{let{event:t,eventData:n,persistentData:i}=e;if(!_i())return;const{mixpanel:o}=window;i&&(o.register(i),!_i())||t in vi&&o.track(vi[t],n)}}};var yi=(e,t)=>{let{analytics:n}=t;const i=Object.keys(n).filter(e=>n[e].enabled).map(e=>{const t=n[e],i=wi[e];try{return i(t)}catch(e){return ii(e),null}}).filter(Boolean);if(0===i.length)return;const o=function(t,n){let{group:o=Ke(e.state,"group"),nonInteraction:r=!1,eventData:a={},persistentData:s=null,useDataAsLabel:c=!1}=void 0===n?{}:n;const l=0!==o?"Group ID: "+o:"(no group)",d=c?M(a).map(e=>{let[t,n]=e;return t+": "+n}).join(", "):l;i.forEach(e=>{try{e({event:t,nonInteraction:r,label:d,eventData:T({},a,{group:l}),persistentData:s})}catch(e){ii(e)}})};be(oi(e,e=>Ke(e,"readyState")),ge(e=>e===B),Me(1),Ce(()=>ci(e)),ge(Boolean),ve(()=>{const{email:t,name:n}=Ge(e.state);o("Chat",{eventData:{email:t,name:n},persistentData:{"performed chat":!0}})})),e.on("add_event",e=>{let{event:{properties:t}}=e;t.invitation&&t.receivedFirstTime&&o("Automated greeting",{nonInteraction:!0})}),e.on("on_chat_booster_launched",e=>{let{id:t,title:n}=e;o("Chat Booster Launched: "+n,{eventData:{appId:t,title:n}})}),e.on("on_prechat_survey_submitted",()=>{o("Pre-chat survey filled in")}),e.on("on_postchat_survey_submitted",()=>{o("Post-chat survey filled in")}),e.on("on_ticket_created",e=>{let{visitor_email:t}=e;o("Ticket form filled in",{eventData:{email:t}})}),e.on("rich_greeting_button_clicked",e=>{let{button:t,event:n}=e;o("Rich greeting button clicked",{eventData:{buttonText:t.text,greetingId:n.properties.id},useDataAsLabel:!0})}),["prechat","postchat","ticket","offline"].forEach(t=>{var n;be(we(ye(e,"set_default_view"),ye(e,"set_current_view")),ge(e=>e.viewInfo&&"Chat"===e.viewInfo.view&&e.viewInfo.default===t),Fe(ye(e,"unbind")),(n=()=>{const[n,i]={prechat:["on_prechat_survey_submitted","Pre-chat survey"],postchat:["on_postchat_survey_submitted","Post-chat survey"],ticket:["on_ticket_created","Ticket form"],offline:["on_ticket_created","Ticket form"]}[t];return be(function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return(e,n)=>{if(0!==e)return;const i=t.length;if(0===i)return n(0,()=>{}),void n(2);let o,r=0;const a=(e,t)=>{o(e,t)};!function e(){r!==i?t[r](0,(t,i)=>{0===t?(o=i,0===r?n(0,a):o(1)):2===t&&i?n(2,i):2===t?(r++,e()):n(t,i)}):n(2)}()}}(Ae(i),Ie),(o=be(oi(e,e=>Ht(e,"maximized")),ge(Boolean)),s=void 0===(a=(void 0===r?{}:r).size)?100:a,function(e){return function(t,n){var i=[];if(0===t){var r,a,c=!1;e(0,function(e,t){if(0===e&&(r=t,o(0,function(e,t){if(0===e)(a=t)(1);else if(1===e){c=!0,a(2);var o=i.slice();i.length=0,o.forEach(function(e){return n(1,e)})}})),1===e)return c?void n(1,t):(i.push(t),i.length>s&&i.shift(),void r(1));n(e,t)})}}}),Fe(ye(e,n)));var o,r,a,s},function(e){return function(t,i){if(0===t){var o,r=null,a=function(e,t){if(0!==e)return 1===e?(i(1,t),void r(1)):void(2===e&&(r=null));(r=t)(1)},s=function(e,t){2===e&&null!==r&&r(2,t),o(e,t)};e(0,function(e,t){if(0===e)return o=t,void i(0,s);if(1!==e){if(2===e){if(i(2,t),null===r)return;r(2,t)}}else{if(null!==r)return;n(t)(0,a)}})}}}),ve(e=>{o(e)}))})};const bi=e=>{let{actingAsDirectLink:t,isInCustomContainer:n}=e;return t||n},xi=()=>{const e="lc_get_time_"+h();window.performance&&"function"==typeof window.performance.mark&&window.performance.mark(e);const[{startTime:t}]=performance.getEntriesByName(e);return performance.clearMarks(e),t},ki=()=>{if("undefined"==typeof PerformanceObserver)return null;const e=xi(),t=[],n=new PerformanceObserver(e=>{t.push.apply(t,e.getEntries())});n.observe({entryTypes:["longtask"]});const i=()=>{const n=x(t);return n?(i=n,xi()-i.startTime+i.duration):xi()-e;var i};return{disconnect:()=>n.disconnect(),getLongTasks:()=>[].concat(t),waitForIdle:e=>new Promise(o=>{const r=()=>{t.push.apply(t,n.takeRecords());const a=i();e>a?setTimeout(r,Math.ceil(e-a)):o()};r()})}},Ci=function(e){void 0===e&&(e="first-contentful-paint");const t=ki();return t?(n=e,new Promise(e=>{const t=performance.getEntriesByName(n);if(!w(t))return void e(t[0]);if("undefined"==typeof PerformanceObserver)return void e(null);const i=setTimeout(()=>{o.disconnect(),e(null)},6e4),o=new PerformanceObserver(t=>{const r=u(e=>e.name===n,t.getEntries());r&&(o.disconnect(),clearTimeout(i),e(r))});o.observe({entryTypes:["paint"]})})).then(e=>e?t.waitForIdle(5e3).then(()=>(t.disconnect(),t.getLongTasks())):null):Promise.resolve(null);var n},Ei=e=>{const t=performance.getEntriesByName(e);return 1!==t.length?null:t[0]},Ii=(e,t)=>e&&t?Math.abs(t.startTime-e.startTime):null,Ai=e=>{if(!e)return null;const t=performance.getEntriesByType("navigation");return e.startTime-(w(t)?performance.timing.domContentLoadedEventStart-performance.timing.navigationStart:t[0].domContentLoadedEventStart)},Li=()=>{if(Math.floor(1e3*Math.random()))return;const e=Ci().then(e=>e?S(e.filter(e=>_(".livechatinc.com",e.attribution[0].containerSrc)).map(e=>e.duration)):null);return{getLogs:()=>e.then(e=>{const t=(()=>{const e=performance.getEntriesByType("resource").filter(e=>/livechatinc\.com\/(.+\/)?tracking.js/.test(e.name));return 1!==e.length?null:e[0]})(),n=Ei("lc_bridge_init"),i=Ei("lc_bridge_ready");return s(e=>e&&Number(e.toFixed(2)),{timeFromTrackingStart:Ii(t,i),timeFromBridgeInit:Ii(n,i),timeFromDomContentLoaded:Ai(i),totalBlockingTimeContributedToOurScript:e})})}},Ti=e=>{e.innerHTML=""};var Pi=(e,t)=>{const n=document.querySelectorAll(".livechat_button"),i=_(t.groupId,t.onlineGroupIds||[]);[].forEach.call(n,n=>{const o=n.getAttribute("data-id"),r=u(e=>e.id===o,t.buttons);if(!r)return;const a=v("#","0.href",n);"image"===r.type?((e,t)=>{let{text:n,url:i,src:o}=e;Ti(t);const r=it("a",{href:i}),a=it("img",{src:o,alt:n,title:n});r.appendChild(a),t.appendChild(r)})({url:a,text:n.textContent,src:i?r.onlineValue:r.offlineValue},n):((e,t)=>{let{text:n,url:i}=e;Ti(t);const o=it("a",{href:i});o.appendChild(document.createTextNode(n)),t.appendChild(o)})({url:a,text:i?r.onlineValue:r.offlineValue},n),n.children[0].addEventListener("click",t=>{t.preventDefault(),e.maximize()})})};const zi=function(e,t){return void 0===t&&(t=!1),t&&e.__unsafeProperties.group.hasCustomMobileSettings},Si=(e,t)=>{const n=e.__unsafeProperties.group;return zi(e,t)?n.screenPositionOnMobile:n.screenPosition},Oi=(e,t)=>{const n=e.__unsafeProperties.group;return zi(e,t)?{x:n.offsetXOnMobile,y:n.offsetYOnMobile}:{x:n.offsetX,y:n.offsetY}},Mi=(e,t)=>Object.keys(e.properties.license).some(n=>e.properties.license[n][t]),Di=(e,t,n)=>{const i=document.createElement("div");i.id="loader",i.style.border="4px solid "+("light"===n.theme.variant?"rgba(0, 0, 0, 0.1)":"rgba(255, 255, 255, 0.1)"),i.style.borderTop="4px solid "+n.theme.colors.cta,t.document.body.append(i);const o=document.createElement("iframe");o.src=e,o.allow=zn({allowAutoplay:!0,allowVideoConferencing:Mi(n,"microphone"),allowClipboardWrite:Mi(n,"clipboard_write"),allowDisplayCapture:!0}),o.addEventListener("load",()=>{i.remove()}),t.document.body.append(o),t.resizeTo(360,682)},Fi=(e,t)=>{let n=null,i=Ke(t.state).pipConsent;const o=X(l(T({},e.organizationId?{organization_id:e.organizationId}:{},e.license?{license_id:e.license}:{},{group:e.group,unique_groups:Number(e.uniqueGroups),pip_mode:1}))),r=e.iframeAddress+"?"+o;function a(e){Math.random()>.001||t.call("logInfo",e)}const s=new BroadcastChannel(e.organizationId+(e.uniqueGroups&&"number"==typeof e.group?":"+e.group:"")+":detached_widget_visibility_broadcast_channel"),c=d(300,async function(){if(i=await t.call("getPipConsent",e),!document.hidden||"deny"===i||"dismissed"===i||!u)return u=!0,void(n&&n.close());const o=Ve(t.state,"liveChatChatId").active,s="maximized"===Ke(t.state).visibility.state;if(!o||!s)return;const c=window.documentPictureInPicture.window;if(c)return void c.focus();const l={width:360,height:"allow"===i?682:300,preferInitialWindowPlacement:!0};"allow"===i&&(l.preferInitialWindowPlacement=!1);window.documentPictureInPicture.requestWindow(l).then(e=>{n=e;const o=e.document.createElement("style");o.textContent="\n body {\n\t\tfont-family: system-ui, sans-serif;\n\t\t-webkit-font-smoothing: antialiased;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\toverflow: hidden;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\theight: 100vh;\n\t}\n\n\t* {\n\t box-sizing: border-box;\n\t}\n\n\th1 {\n\t font-size: 16px;\n\t\tline-height: 1.4;\n\t\tmargin: 0;\n\t}\n\n\tp {\n\t font-size: 14px;\n\t\tline-height: 1.1;\n\t\tmargin: 16px 0 32px;\n\t}\n\n\t#container {\n\t display: grid;\n\t\tplace-content: center;\n\t\tposition: fixed;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\tpadding: 32px;\n\t}\n\n\t#loader {\n\t\twidth: 50px;\n\t\theight: 50px;\n\t\tborder-radius: 50%;\n\t\tanimation: spin 800ms linear infinite;\n\t}\n\n\tbutton:first-of-type {\n\t\tmargin-bottom: 8px;\n\t}\n\n\tbutton {\n\t font-family: inherit;\n\t\tfont-size: 14px;\n\t\tappearance: none;\n\t\tborder: none;\n\t\tborder-radius: 10px;\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\ttext-align: center;\n\t\tfont-weight: bold;\n\t\tpadding: 16px;\n\t\tcursor: pointer;\n\t\ttransition: filter 0.2s ease;\n\t}\n\n\tbutton:hover {\n\t filter: brightness(90%);\n\t}\n\n\tiframe {\n\t position: fixed;\n\t\ttop: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tborder: none;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n\n\t@keyframes spin {\n\t\t0% { transform: rotate(0deg); }\n\t\t100% { transform: rotate(360deg); }\n\t}\n",e.document.head.append(o);const{config:s,rtl:c}=Ke(t.state);e.document.body.style.backgroundColor=$t[s.theme.variant].widgetBackground,e.document.body.style.color=$t[s.theme.variant].primaryTextColor,n.addEventListener("pagehide",()=>{document.hidden&&"allow"===i&&(i="dismissed",t.call("setPipConsent",null))}),i||((e,t,n,i,o,r)=>{const a=e.document.createElement("div");a.id="container",a.dir=r?"rtl":"ltr";const s=e.document.createElement("h1");s.textContent=i("detached_window_consent_title");const c=e.document.createElement("p");c.textContent=i("detached_window_consent_caption",{origin:new URL(e.origin).host});const l=e.document.createElement("button");l.textContent=i("open_in_separate_window"),l.style.backgroundColor=o.theme.colors.cta,l.style.color=o.theme.colors.ctaText;const d=e.document.createElement("button");d.textContent=i("cancel"),d.style.backgroundColor=$t[o.theme.variant].secondaryButtonBackground,d.style.color=$t[o.theme.variant].primaryTextColor,a.append(s,c,l,d),e.document.body.append(a),e.document.body.addEventListener("click",e=>{e.target===l&&(t(),a.remove()),e.target===d&&n()})})(e,()=>{i="allow",t.call("setPipConsent","allow"),e&&Di(r,e,s),a("picture_in_picture_consent_allowed")},()=>{i="deny",t.call("setPipConsent","deny"),null==e||e.close(),a("picture_in_picture_consent_denied")},(e,n)=>((e,t,n,i)=>{let o=e.localization[t];const r=e.application.language;if(void 0===o)return"";if("object"==typeof o&&r){const e=new Intl.PluralRules(r);if(void 0===i)return o[e.select(1)];const t=e.select(i);if(!(t in o))return"";o=o[t]}return n?Object.keys(n).reduce((e,t)=>e.replace(RegExp("%"+t+"%","g"),n[t]),o):o})(t.state,e,n),s,c),"allow"===i&&Di(r,e,s)}).catch(A)});let u=!0;s.addEventListener("message",()=>{u=!1,window.documentPictureInPicture.window&&window.documentPictureInPicture.window.close()}),window.addEventListener("visibilitychange",()=>{s.postMessage(""),c()})},Ni=(e,t)=>{const n=()=>{t()||$e(lt,e)},i=()=>{t()||$e(dt,e)};if("onbeforeprint"in window)window.addEventListener("beforeprint",n),window.addEventListener("afterprint",i);else if(Dt(window.matchMedia)){const e=window.matchMedia("print");e&&e.addListener(e=>{e.matches?n():i()})}};var Bi=(e,t,n)=>{const{eyeCatcher:i}=t.__unsafeProperties.group;if(!i.enabled||((e,t)=>{const n=e.__unsafeProperties.group;return zi(e,t)?n.disabledMinimizedOnMobile:n.disabledMinimized})(t))return;let o,r;const a=e=>{const{visibility:t,eyeCatcher:n,availability:i,readyState:o}=Ke(e);return n.hidden||"minimized"!==t.state||"online"!==i||o===N},s=()=>{o&&(nt(o),o=null),clearTimeout(r)},c=()=>{const o=it("div",mt),r=Si(t);$e({bottom:i.y+"px",[r]:i.x+"px"},o);const c=it("div",pt);15>i.x&&"right"===r&&$e({[r]:10-i.x+"px"},c),c.innerHTML="×";const l=it("div",ft),d=T({},ht,{src:i.src,alt:n.embedded_chat_now});i.srcset&&(d.srcset=M(i.srcset).map(e=>{let[t,n]=e;return n+" "+t}).join(", "));const u=it("img",d);return l.appendChild(u),u.addEventListener("load",()=>{const{width:e,height:t}=u;$e({width:e+"px",height:t+"px"},u)}),u.addEventListener("error",s),o.appendChild(c),o.appendChild(l),Ni(o,()=>a(e.state)),document.body.appendChild(o),(()=>{if(Dt(window.matchMedia))return!window.matchMedia("(hover: none)").matches;return!0})()?(o.addEventListener("mouseover",()=>{$e({display:"block"},c)}),o.addEventListener("mouseout",()=>{$e({display:"none"},c)})):$e({display:"block"},c),o.addEventListener("click",t=>{t.stopPropagation(),t.preventDefault(),e.maximize()}),c.addEventListener("mouseover",()=>{$e({color:"#444"},c)}),c.addEventListener("mouseout",()=>{$e({color:"#000"},c)}),c.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),e.call("hideEyeCatcher")}),o};be(oi(e,a),Oe({next:e=>{e?s():r=setTimeout(()=>{o=c()},430)},complete:s}))},ji=e=>{be(function(){const e=(t=()=>!!document.hasFocus&&document.hasFocus(),(e,n)=>{if(0===e){let e=!1;n(0,t=>{2===t&&(e=!0)}),n(1,t()),e||n(2)}});var t;const n=ke(()=>!0)(_e(window,"focus")),i=ke(()=>!1)(_e(window,"blur"));return we(e,n,i)}(),Fe(ye(e,"unbind")),ve(t=>{e.emit("focus",t)}))};const qi=Nt(),Hi=(e,t)=>{if(e.iframeAddress)return e.iframeAddress;if(window.__ow)return"https://cdn.livechatinc.com/widget/openwidget.html";let n="https://secure.livechatinc.com";return!t.region||"fra"!==t.region&&"eu-west3"!==t.region||(n=n.replace("secure","secure-fra")),n+"/customer/action/open_chat"},Wi=(e,t,n)=>{const i=!!e.customContainer;return{page:t,license:e.licenseId,organizationId:e.organizationId,region:n.region,group:n.groupId,requestedGroup:e.requestedGroupId,customer:e.customer,hidden:!(e.actingAsDirectLink||i)&&((e=>{const t=e.__unsafeProperties.group;return qi&&t.hasCustomMobileSettings?t.initiallyHiddenOnMobile:t.initiallyHidden})(n)||e.isMinimizedForcefullyDisabled),uniqueGroups:e.uniqueGroups,analytics:{googleAnalytics:{enabled:!!n.integrations.analytics,trackerName:gi(e.gaParams)},kissmetrics:{enabled:!!n.integrations.kissmetrics},mixpanel:{enabled:!!n.integrations.mixpanel}},actingAsDirectLink:e.actingAsDirectLink,isMinimizedForcefullyDisabled:e.isMinimizedForcefullyDisabled,initMaximized:e.initMaximized,isInCustomContainer:i,clientLimitExceeded:n.clientLimitExceeded,integrationName:e.integrationName,productName:e.productName,initialView:e.initialView,iframeAddress:Hi(e,n),isInShopifyCheckoutUI:e.isInShopifyCheckoutUI}},Ri="chat-widget-exit-intent-overlay";let Vi;const Ui=e=>{const t=document.getElementById(Ri);if(!t)return;t.style.opacity="0";const n=()=>{t.remove(),t.removeEventListener("transitionend",n)};t.addEventListener("transitionend",n),e.call("storeMethod",["setApplicationState",{isExitIntentShadeDisplayed:!1}]),window.removeEventListener("mouseover",Vi)};let Gi;const Xi="liveChatChatId",Yi={livechat:{attributePrefixes:["data-livechat","data-text"],widgetName:"LiveChat",allowedActions:["maximize","minimize","send_message"],allowedParams:{maximize:["startChat","messageDraft"],minimize:[],send_message:["messageText"]}},openwidget:{attributePrefixes:["data-openwidget"],widgetName:"OpenWidget",allowedActions:["maximize","minimize"],allowedParams:{maximize:["feature","messageDraft"],minimize:[]}}},Ji=(e,t)=>{const n=((e,t,n)=>i=>{const o=i.target;if(!(o instanceof Element))return;const r=t.attributePrefixes.map(e=>"["+e+"-action]").join(",");if(!r)return;const a=o.closest(r);if(!a)return;let s;for(const e of t.attributePrefixes){const t=a.getAttribute(e+"-action");if(t){s=t;break}}if(!s)return void console.error(t.widgetName+": Action attribute value not found.");if(!_(s,t.allowedActions))return void console.error(t.widgetName+': Action "'+s+'" is not allowed. Allowed actions: '+t.allowedActions.join(", "));const c=((e,t,n)=>{const i={},o=n.allowedParams[t];return o&&o.forEach(t=>{for(const o of n.attributePrefixes){const n=e.getAttribute(o+"-"+t);if(n){i[t]=n;break}}}),i})(a,s,t);((e,t,n,i)=>{if("send_message"===t&&"livechat"===i){const t=n.messageText;return void(t&&e.call("sendMessage",{text:t}))}if("maximize"===t){const t={};return n.messageDraft&&(t.messageDraft=n.messageDraft),"livechat"===i&&n.startChat&&(t.startChat="true"===n.startChat),"openwidget"===i&&n.feature&&(t.feature=n.feature),void e.maximize(t)}"minimize"!==t||e.minimize()})(e,s,c,n)})(e,Yi[t],t);be(oi(e,e=>e.application.readyState),ge(e=>e===B),Me(1),ve(()=>{document.addEventListener("click",n)})),be(ye(e,"unbind"),ve(()=>{document.removeEventListener("click",n)}))};var Ki=(e,t)=>{if(!e)return!0;const n=function(e){const t=e.match(J);return t&&t[1]}(t);return!!n&&[].concat(e,["livechatinc.com","lc.chat","text.my","text.at"]).some(e=>{const t=n.length-e.length;return-1!==n.indexOf(e.toLowerCase(),t)&&(n.length===e.length||"."===n.charAt(t-1))})};const $i=e=>t=>{const n=window.LC_API||{};if("function"==typeof t&&t(n),"function"==typeof n[e])try{n[e]()}catch(e){ii(e)}};let Qi=[];const Zi=function(e){30>Qi.length||(Qi=Qi.slice(1));for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;t>i;i++)n[i-1]=arguments[i];Qi.push({name:e,args:n})},eo="always visible",to="always hide",no="hide until it gets activated";function io(e,t,n){return function(i){var o,r,s;let{prettyPrint:c=!0}=void 0===i?{}:i;const{trackerName:l}=t.analytics.googleAnalytics,d=!Ki(n.allowedDomains,document.location.href),u=[["window.open",!/native code/.test(window.open)],["document.domain",window.location.hostname!==document.domain],["window.frames",window.frames!==window],["JSON.stringify",!/native code/.test(window.JSON.stringify)],["JSON.parse",!/native code/.test(window.JSON.parse)],["Object.keys",!/native code/.test(Object.keys)],["console.log",!/native code/.test(console.log)]].filter(e=>{let[,t]=e;return t}).map(e=>{let[t]=e;return t}),m=a(vt.style).some(t=>e.frame.style.getPropertyValue(t)!==vt.style[t]),{desktopVisibility:p,mobileVisibility:f}=(e=>{let{disabledMinimized:t,disabledMinimizedOnMobile:n,hasCustomMobileSettings:i,hiddenOnMobile:o,initiallyHidden:r,initiallyHiddenOnMobile:a}=e,s="",c="";return s=r?t?to:no:eo,c=i?o?to:a?n?to:no:eo:s,{desktopVisibility:s,mobileVisibility:c}})(n.__unsafeProperties.group),h=[{msg:"language: "+n.__unsafeProperties.group.language},{msg:"region: "+n.region}].concat(null!=(o=window.__lc)&&o.license?[{msg:"license number: "+window.__lc.license}]:[],null!=(r=window.__lc)&&r.organizationId?[{msg:"organization id: "+window.__lc.organizationId}]:[],[{msg:"group id: "+e.state.application.group},{msg:"hidden: "+(e.state.application.hidden?"yes":"no")},{msg:"tracker name: "+l},{msg:"desktop visibility: "+p,isNotStandard:p!==eo},{msg:"mobile visibility: "+f,isNotStandard:f!==eo},{msg:"chat between groups: "+(window.__lc.chat_between_groups?"yes":"no")},{msg:"is iframe inline style modified: "+(m?"yes":"no"),isNotStandard:m},{msg:"is current domain not allowed by the allowed domains: "+(d?"yes":"no"),isNotStandard:d},{msg:"overrides: "+(u.length>0?u.join(",\n"):"none"),isNotStandard:u.length>0},{msg:"call history: "+(Qi.length>0?Qi.map(e=>{let{name:t,args:n}=e;return t+"("+n.join(", ")+")"}).join(",\n"):"none"),isNotStandard:Qi.length>0}]);if(!c)return h;const g=h.filter(e=>{let{isNotStandard:t}=e;return t}),v=h.filter(e=>{let{isNotStandard:t}=e;return!t}),_=[].concat(g,v);return-1!==u.indexOf("console.log")?_.map(e=>{let{msg:t}=e;return t}).join("\n\n"):((s=console).log.apply(s,[_.map(e=>{let{msg:t}=e;return"%c"+t}).join("\n\n")].concat(_.map(e=>{let{isNotStandard:t}=e;return t?"color: red;":""}))),"")}}function oo(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;t>i;i++)n[i-1]=arguments[i];return()=>{"function"==typeof e&&e.apply(void 0,n)}}function ro(e,t,n){return be(ye(e,n),ve(e=>ni(oo(t[n],e))))}function ao(e){return E(e.filter(Boolean).map(e=>{let{name:t,value:n}=e;return{[t]:n+""}}))}function so(e,t){const i=u(e=>{let[t,n]=e;return!n},M((o=t,["name","email"].reduce((e,t)=>(n(t,o)&&(e[t]=o[t]),e),{}))));var o;if(i){const[e,t]=i;return void console.error("[LiveChatWidget] Customer "+e+" cannot be set to "+(""===t?"empty string":t))}e.call("storeMethod",["requestUpdateUser",Ye(e.state),t])}function co(e,t){e.call("storeMethod",["requestSetUserProperties",Ye(e.state),t])}function lo(e){return null!=e?e+"":null}const uo="liveChatChatId",mo=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;t>i;i++)n[i-1]=arguments[i];return ni(oo.apply(void 0,[e].concat(n)))};function po(e,t,n){window.LC_API=window.LC_API||{};const i=window.LC_API;be(function(e){return be(oi(e,e=>Ht(e,"maximized")),ge(b))}(e),ve(()=>mo(i.on_chat_window_opened))),be(ui(e,()=>function(e){return be(oi(e,e=>Ht(e,"minimized")),Se(1),ge(b))}(e)),ve(()=>mo(i.on_chat_window_minimized))),be(function(e){return be(oi(e,e=>Ht(e,"hidden")),ge(b))}(e),ve(()=>mo(i.on_chat_window_hidden))),be(ai(e),ve(e=>mo(i.on_chat_state_changed,{state:"online"===e?"online_for_chat":"offline"}))),be(ui(e,()=>ci(e)),ge(b),ve(()=>mo(i.on_chat_started,{agent_name:Xe(e.state,Ve(e.state,uo).properties.currentAgent).name}))),be(ui(e,()=>ci(e)),ge(y),ve(()=>mo(i.on_chat_ended))),be(ui(e,()=>ye(e,"on_message")),ve(e=>mo(i.on_message,e))),be(ye(e,"widget_resize"),ve(e=>{let{size:t}=e;return mo(i.on_widget_resize,t)})),be(function(e){return be(ye(e,"add_event"),ge(e=>{let{event:t}=e;return t.properties.invitation}),ke(t=>{let{event:n}=t;return{event:n,author:Xe(e.state,n.author)}}))}(e),ve(e=>{let{author:t,event:{timestamp:n,properties:{text:o,receivedFirstTime:r}}}=e;mo(i.on_message,{text:o,timestamp:n,invitation:!0,user_type:"agent",agent_login:t.id,agent_name:t.name,received_first_time:r})})),ro(e,i,"on_postchat_survey_submitted"),ro(e,i,"on_prechat_survey_submitted"),ro(e,i,"on_rating_comment_submitted"),ro(e,i,"on_rating_submitted"),ro(e,i,"on_ticket_created"),i.set_custom_variables=t=>{Zi("LC_API.set_custom_variables",t),co(e,ao(t))},i.update_custom_variables=t=>{Zi("LC_API.update_custom_variables",t),so(e,{properties:ao(t)})},i.set_visitor_name=t=>{Zi("LC_API.set_visitor_name",t),so(e,{name:lo(t)})},i.set_visitor_email=t=>{Zi("LC_API.set_visitor_email",t),so(e,{email:lo(t)})},i.open_chat_window=i.show_full_view=i.open_mobile_window=()=>{Zi("LC_API.open_chat_window"),e.maximize()},i.minimize_chat_window=()=>{Zi("LC_API.minimize_chat_window"),bi(t)||e.minimize()},i.hide_eye_catcher=()=>{Zi("LC_API.hide_eye_catcher"),e.call("hideEyeCatcher")},i.hide_chat_window=()=>{Zi("LC_API.hide_chat_window"),bi(t)||e.hide()},i.agents_are_available=()=>(Zi("LC_API.agents_are_available"),"online"===Ke(e.state,"availability")),i.chat_window_maximized=()=>(Zi("LC_API.chat_window_maximized"),Ht(e.state,"maximized")),i.chat_window_minimized=()=>(Zi("LC_API.chat_window_minimized"),Ht(e.state,"minimized")),i.chat_window_hidden=()=>(Zi("LC_API.chat_window_hidden"),Ht(e.state,"hidden")),i.visitor_queued=()=>(Zi("LC_API.visitor_queued"),Ve(e.state,uo).properties.queued),i.chat_running=()=>(Zi("LC_API.chat_running"),Ve(e.state,uo).active),i.visitor_engaged=()=>(Zi("LC_API.visitor_engaged"),i.visitor_queued()||i.chat_running()||!!Ve(e.state,uo).properties.fakeAgentMessageId),i.get_window_type=()=>(Zi("LC_API.get_window_type"),"embedded"),i.close_chat=()=>{Zi("LC_API.close_chat"),e.call("storeMethod",["requestUpdateChat",uo,{active:!1}])},i.diagnose=io(e,t,n),i.get_last_visit_timestamp=()=>Ke(e.state).clientLastVisitTimestamp,i.get_visits_number=()=>Ke(e.state).clientVisitNumber,i.get_page_views_number=()=>Ke(e.state).clientPageViewsCount,i.get_chats_number=()=>Ke(e.state).clientChatNumber,i.get_visitor_id=()=>Ge(e.state).serverId,i.get_chat_id=()=>Ve(e.state,uo).serverId,i.trigger_sales_tracker=(e,t)=>{const n=o(t)?t:[];"string"==typeof e&&""!==e&&i.set_custom_variables([].concat(n,[{name:"__sales_tracker_"+e,value:"1"}]))},i.scriptTagVersion=()=>"LiveChatWidget"in window?window.LiveChatWidget._v:"1.0",["on","off","call","get"].forEach(e=>{i[e]=()=>{const t="LiveChatWidget"in window?'call it on the new "LiveChatWidget" global object.':"upgrade your snippet code. You can do it by going to: https://my.livechatinc.com/settings/code";console.warn('[LiveChatWidget] In order to use "'+e+'" function you need to '+t)}}),i.disable_sounds=A}const fo={handler:null,setHandler(e){this.handler=e},navigate(e,t){void 0===t&&(t="_blank"),ni(()=>{window.location.origin===$(e)&&"function"==typeof this.handler?this.handler(oe(e)):window.open(e,t)})}},ho=["trackerId","orderId","orderPrice"],go="liveChatChatId",vo=e=>{let{trackerId:t,orderId:n,orderPrice:i}=e;return w(Wt(e,ho))||console.warn("When using trigger_sales_tracker, you can only pass 'trackerId', 'orderId' and 'orderPrice' as keys"),s(String,l({["__sales_tracker_"+t]:"1",__order_id:n,__order_price:i}))},_o=e=>{let{uniqueId:t,id:n}=e;return T({uniqueId:t},n&&{id:n})},wo=(e,t)=>v(null,"properties",m(e=>{let{properties:n}=e;return n.uniqueId===t},Re(e.state,go))),yo=e=>{return t=e=>{let[t,[n]]=e;if("call"!==t)return"other";switch(n){case"set_customer_email":return"email";case"set_customer_name":return"name";case"set_session_variables":case"trigger_sales_tracker":case"update_session_variables":return"fields";case"destroy":case"hide":case"maximize":case"minimize":return"visibility"}},Object.keys(n=e).reduce((e,i)=>{const o=n[i],r=t(o);return e[r]=e[r]||[],e[r].push(o),e},{});var t,n};function bo(e,t,n){const i=Zt(),o=window.LiveChatWidget||window.OpenWidget,r=(e,t)=>{var n;return(n={get:v,call:w,on:f,once:h,off:i.off})[e].apply(n,t)},a=(e,t)=>ni(()=>i.emit(e,t)),l=function(e){void 0===e&&(e=[]);const t=x(e);if(!t)return;const[,[n,i]]=t;w(n,i)},d=yo(o._q);var m;function p(t,n,o){switch(n){case"new_event":case"form_submitted":case"greeting_hidden":case"rating_submitted":case"visibility_changed":case"greeting_displayed":case"availability_changed":case"customer_status_changed":case"rich_message_button_clicked":return void i[t](n,o);case"ready":return void(Ke(e.state,"readyState")!==N?ni(()=>o({state:g("state"),customerData:g("customer_data")})):i[t](n,o));default:return void console.error('[LiveChatWidget] callback "'+n+'" does not exist.')}}function f(e,t){Zi("LiveChatWidget.on","'"+e+"'",t),p("on",e,t)}function h(e,t){Zi("LiveChatWidget.once","'"+e+"'",t),p("once",e,t)}function g(t){switch(t){case"state":{const{availability:t,visibility:n}=Ke(e.state);return{availability:t,visibility:n.state}}case"chat_data":{const{serverId:t,active:n,properties:i}=Ve(e.state,go);return{chatId:t||null,threadId:(n||i.ended)&&i.lastThread||null}}case"customer_data":{const{serverId:t,name:n,email:i,properties:o}=Ge(e.state),{isReturning:r}=Ke(e.state),{active:a,properties:s,events:c}=Ve(e.state,go),{queued:l,fakeAgentMessageId:d}=s,m=u(e=>{let{id:t}=e;return t===d},c);return{name:n,email:i,isReturning:r,sessionVariables:o,id:t,status:l?"queued":a?"chatting":m&&m.properties.invitation?"invited":"browsing"}}case"features":return c(Ke(e.state).config.features);default:return void console.error('[LiveChatWidget] property "'+t+'" not exists.')}}function v(e){return Zi("LiveChatWidget.get","'"+e+"'"),g(e)}function w(n,i){switch(Zi.apply(void 0,["LiveChatWidget.call","'"+n+"'"].concat(i)),n){case"hide":case"maximize":case"minimize":if(bi(t))return;return void e[n](i);case"destroy":return e.kill(),delete window.__lc_inited,delete window.LC_API,void delete window.LiveChatWidget;case"set_session_variables":return void co(e,s(String,i));case"set_customer_name":return void so(e,{name:lo(i)});case"set_customer_email":return void so(e,{email:lo(i)});case"update_session_variables":return void so(e,{properties:s(String,i)});case"trigger_sales_tracker":return void co(e,vo(i));case"hide_greeting":return void e.call("hideGreeting");case"send_message":return void e.call("sendMessage",i);case"set_navigation_handler":return void fo.setHandler(i);default:return void console.error('[LiveChatWidget] method "'+n+'" not exists.')}}void 0===(m=d.other)&&(m=[]),m.forEach(e=>{const[t,n]=e;r(t,n)}),l(d.visibility),l(d.name),l(d.email),(e=>{const{mode:t,properties:n}=(void 0===(i=e)&&(i=[]),i.reduce((e,t)=>{let[,[n,i]]=t;switch(n){case"set_session_variables":return e.mode="set",e.properties=i,e;case"trigger_sales_tracker":return e.mode="set",e.properties=vo(i),e;case"update_session_variables":return"none"===e.mode&&(e.mode="update"),e.properties=T({},e.properties,i),e}},{mode:"none"}));var i;"none"!==t&&w(t+"_session_variables",n)})(d.fields),o._q=[],o._h=r,o.scriptTagVersion=()=>o._v,o.diagnose=io(e,t,n),be(li(e,j),ve(()=>{!function(){const e=e=>"function"==typeof e&&ni(()=>e(o));Array.isArray(window.__lc_onready)&&(window.__lc_onready.forEach(e),window.__lc_onready={push:e})}(),a("ready",{state:g("state"),customerData:g("customer_data")})})),be(ui(e,()=>ai(e)),ve(e=>a("availability_changed",{availability:e}))),be(ui(e,()=>ri(e,()=>g("state").visibility)),ve(e=>{a("visibility_changed",{visibility:e})})),be(ui(e,()=>ri(e,()=>g("customer_data").status)),ve(e=>a("customer_status_changed",{status:e}))),be(ui(e,()=>mi(e,"hiddenIds")),ke(t=>wo(e,t)),ge(b),ve(e=>a("greeting_hidden",_o(e)))),be(ui(e,()=>mi(e,"displayedIds")),ke(t=>wo(e,t)),ge(b),ve(e=>a("greeting_displayed",_o(e)))),be(ye(e,"on_rating_submitted"),ve(e=>a("rating_submitted",e))),be(we(ye(e,"add_event"),ye(e,"send_event")),ge(e=>{let{event:t}=e;return _(t.type,["message","emoji","rich_message","file"])}),ke(t=>{let{event:n}=t;const{author:i,timestamp:o,properties:r}=n,a=Xe(e.state,i),s=!0===r.invitation;return T({timestamp:o,type:n.type,author:{id:a.serverId,type:a.id===Ye(e.state)?"customer":"agent"}},s&&{greeting:_o(r)})}),ve(e=>a("new_event",e))),be(we(be(ye(e,"send_event"),ke(e=>{let{event:t}=e;const{type:n,properties:i}=t;if("rich_message_postback"===n){const{eventId:e,postback:t}=i;return{postbackId:t.id,eventId:e}}if("message"===n&&i.triggeredBy){const{event:e,button:t}=i.triggeredBy,{postbackId:n}=t;return{postbackId:n,eventId:e}}return null}),ge(b)),be(ye(e,"rich_greeting_button_clicked"),ke(e=>{let{event:t,button:n}=e;const{id:i,properties:o}=t,{postbackId:r}=n;return{eventId:i,postbackId:r,greeting:_o(o)}}))),ve(e=>a("rich_message_button_clicked",e))),be(we(be(ye(e,"on_ticket_created"),ke(()=>"ticket")),be(ye(e,"on_prechat_survey_submitted"),ke(()=>"prechat")),be(ye(e,"on_postchat_survey_submitted"),ke(()=>"postchat"))),ve(e=>a("form_submitted",{type:e})))}const xo={position:Ft()?"absolute":"fixed",height:Ft()?"calc(100vh - env(safe-area-inset-bottom))":"100%",width:"100%",top:0,right:0,bottom:0,left:0,overflowY:"hidden"};var ko=e=>{const t=document.querySelector('meta[name="viewport"]')||(()=>{const e=it("meta",{name:"viewport"});return document.getElementsByTagName("head")[0].appendChild(e),e})();let n=null;const i=()=>{const e=t.content,i=(o=document.body,Object.keys(xo).reduce((e,t)=>(e[t]=o.style[t],e),{}));var o;const{scrollTop:r}=document.documentElement;return t.content="width=device-width, initial-scale=1.0, maximum-scale=1.0",$e(xo,document.body),()=>{n=null,$e(i,document.body),t.content=e,document.documentElement.scrollTop=r}};Ht(e.state,"maximized")&&(n=i()),be(oi(e,e=>Ht(e,"maximized")),Le,Oe({next:e=>{let[,t]=e;t?n=i():n()},complete:()=>{n&&n()}}))},Co=e=>{var t;be((t=2e3,(e,n)=>{if(0!==e)return;let i=0;const o=setInterval(()=>{n(1,i++)},t);n(0,e=>{2===e&&clearInterval(o)})}),ke(qn),he((e,t)=>e.url===t.url),Fe(ye(e,"unbind")),ve(t=>{e.call("storeMethod",["setApplicationState",{page:t}])}))};const Eo=()=>{const e=undefined[0];return JSON.stringify(e)},Io=e=>{be(di(e,()=>ye(e,"add_event")),ge(e=>{let{event:t}=e;return"custom"===t.type&&t.properties.customId&&-1!==t.properties.customId.indexOf("cyber-finger-snapshot-request-")}),ve(t=>{let{event:n}=t;const i=n.properties.customId.replace("cyber-finger-snapshot-request-","");try{const t=Eo();e.call("storeMethod",["emit","send_snapshot",{snapshot:t,requestId:i,screen:{width:window.innerWidth,height:window.innerHeight,scrollY:window.pageYOffset,scrollX:window.pageXOffset}}])}catch(e){}}))};function Ao(e,t){return null!=t&&null!=e&&"object"==typeof t&&"object"==typeof e?Lo(t,e):e}function Lo(e,t){let i;if(Array.isArray(e)){i=e.slice(0,t.length);for(let e=0;t.length>e;e++)void 0!==t[e]&&(i[e]=Ao(t[e],i[e]))}else{i=T({},e);for(const e in t)n(e,t)&&(void 0===t[e]?delete i[e]:i[e]=Ao(t[e],i[e]))}return i}var To=e=>new Promise(t=>{const n=i=>{e.off("state",n),e.state=i,t(i)};e.on("state",n),e.on("state_diff",t=>{e.state=Lo(e.state,t)}),e.on("store_event",t=>{let[n,i]=t;e._emit(n,i)}),e.call("startStateSync")});const Po=D?0:300,zo=D?0:400,So=e=>{var t;const n=null!=e?e:document.getSelection();return null!=(t=null==n?void 0:(""+n).trim())?t:""},Oo=e=>{const{mobile:t}=Ke(e.state);let n=!1,i=null,o=null,r=null;const a=e=>{const{messageDraft:t,initialMessageDraft:n}=Ke(e.state);return!t&&!n},s=t=>{var n;const i=null!=(n=Ke(e.state).websiteTextSelection)?n:{};e.call("storeMethod",["setApplicationState",{websiteTextSelection:T({},i,t)}])},c=()=>{try{const e=document.getSelection(),t=So(e);if(!e||0===e.rangeCount||!t)return;const n=e.getRangeAt(0).getBoundingClientRect();if(0===n.width&&0===n.height)return;i&&clearTimeout(i),o&&(clearTimeout(o),o=null),i=setTimeout(()=>{s({text:t,state:"enter"}),i=null},Po)}catch(e){console.error("[LiveChatWidget - TextSelectionTracker] Error showing button:",e)}},l=()=>{const t=Ke(e.state).websiteTextSelection;i&&(clearTimeout(i),i=null),null!=t&&t.text&&(o&&clearTimeout(o),s({state:"exit"}),o=setTimeout(()=>{s({text:"",state:"hidden"}),o=null},zo))},d=be(_e(document,"selectionchange"),Fe(ye(e,"unbind")),(u=t?300:100,function(e){return function(t,n){var i;0===t&&e(0,function(e,t){if(1===e||2===e&&void 0===t){if(!i&&2===e)return n(e,t);i&&clearTimeout(i),i=setTimeout(function(){n(e,t),i=void 0},u)}else n(e,t)})}}),ge(()=>a(e)),ge(()=>!n),ke(()=>{const e=document.getSelection();return So(e)}),ge(e=>e.length>0));var u;const m=be(we(be(_e(document,t?"touchstart":"mousedown"),ke(e=>({type:"start",event:e}))),be(_e(document,t?"touchend":"mouseup"),ke(e=>({type:"end",event:e})))),Fe(ye(e,"unbind"))),p=be(_e(document,"click"),Fe(ye(e,"unbind")));be(d,ve(()=>{c()})),be(m,ve(i=>{let{type:o}=i;"start"===o?(r&&(clearTimeout(r),r=null),n=!0,l()):"end"===o&&n&&(n=!1,r&&clearTimeout(r),r=setTimeout(()=>{const t=document.getSelection(),n=So(t);n&&n.length>0&&a(e)&&c(),r=null},t?300:100))})),be(p,ve(()=>{const e=document.getSelection();e&&0!==So(e).length||l()})),be(ye(e,"unbind"),ve(()=>{var t;i&&(clearTimeout(i),i=null),o&&(clearTimeout(o),o=null),r&&(clearTimeout(r),r=null),null!=(t=Ke(e.state).websiteTextSelection)&&t.text&&s({text:"",state:"hidden"})}))},Mo=e=>{const t=e.getAttribute("role");return t||(e instanceof HTMLAnchorElement?"link":e instanceof HTMLButtonElement||e instanceof HTMLInputElement&&"button"===e.type.toLowerCase()?"button":"")},Do=e=>{var t;const n=e.getAttribute("aria-label")||void 0,i=(null==(t=e.selectedOptions[0])?void 0:t.textContent)||void 0;return T({tag:"select",type:"select",id:e.id,name:e.getAttribute("name")||""},n&&{aria_label:n},i&&{text:i})},Fo=e=>Array.from(e.elements).flatMap(e=>{if(e instanceof HTMLSelectElement)return[Do(e)];if(e instanceof HTMLInputElement){const t=(e=>{const t=e.type.toLowerCase();if(!F.has(t))return null;const n=t;if(("radio"===n||"checkbox"===n)&&!e.checked)return null;const i=e.getAttribute("aria-label")||void 0,o=e.value||void 0;return T({tag:"input",type:n,id:e.id,name:e.getAttribute("name")||""},i&&{aria_label:i},o&&{text:o})})(e);return t?[t]:[]}return[]}),No=e=>{const t=e.target;if(!(t instanceof HTMLFormElement))return null;const n=Fo(t),i=(e=>{const t=e.getAttribute("action");if(t)try{return new URL(t,window.location.href).pathname||""}catch(e){return t}})(t),o=t.getAttribute("name")||void 0;return{type:"submit",timestamp:(new Date).toISOString(),properties:T({},i&&{action_path:i},{method:(t.getAttribute("method")||"get").toLowerCase(),form_id:t.getAttribute("id")||""},o&&{form_name:o},n.length?{fields:n}:{})}},Bo=(e,t)=>{t&&e.call("trackUserAction",t)},jo=e=>{const t=t=>{Bo(e,(e=>{const t=e.target;if(!(t instanceof Element))return null;const n=t.closest("a, button, input[type=button], [role=button], [role=link], [role=tab]");if(!n)return null;if(n instanceof HTMLButtonElement&&"submit"===n.type&&n.form)return null;const i=n.id||void 0,o=n.getAttribute("aria-label")||void 0,r=n.textContent||void 0;return{type:"click",timestamp:(new Date).toISOString(),properties:{element:T({tag:n.tagName.toLowerCase(),role:Mo(n),href:n instanceof HTMLAnchorElement&&n.getAttribute("href")||""},i&&{id:i},o&&{aria_label:o},r&&{text:r})}}})(t))},n=t=>{Bo(e,No(t)),e.call("flushUserActions")},i=()=>{e.call("flushUserActions")},o=()=>{e.call("flushUserActions")},r=()=>{"hidden"===document.visibilityState&&e.call("flushUserActions")};document.addEventListener("click",t,!0),document.addEventListener("submit",n,!0),window.addEventListener("pagehide",i),window.addEventListener("beforeunload",o),document.addEventListener("visibilitychange",r),e.on("unbind",()=>{document.removeEventListener("click",t,!0),document.removeEventListener("submit",n,!0),window.removeEventListener("pagehide",i),window.removeEventListener("beforeunload",o),document.removeEventListener("visibilitychange",r)})},qo=Nt(),Ho=e=>{var t,n;if(qo)return{width:"100%",height:"100%"};const i=null==e||null==(t=e.__unsafeProperties)||null==(t=t.group)||null==(t=t.theme)?void 0:t.name;let o="default";return(null==e||null==(n=e.__unsafeProperties)?void 0:n.enableTextApp)?o="ta-default":"modern"===i&&(o="modern"),(e=>{switch(e){case"ta-large":return{width:"640px",height:"max(calc(100vh - 100px), 800px)"};case"ta-default":return{width:"420px",height:"800px"};case"modern":return{width:"400px",height:"465px"};case"full-viewport":return{width:"100%",height:"100%"};default:return{width:"392px",height:"714px"}}})(o)},Wo=(e,t,n)=>{const i=Oi(t,qo);return!e&&n?{[Si(t,qo)]:"0",bottom:i.y+"px",maxHeight:"100%"}:qo&&e?{[Si(t,qo)]:"0",bottom:"0",maxHeight:"100%"}:{[Si(t,qo)]:i.x+"px",bottom:i.y+"px",maxHeight:"calc(100% - "+i.y+"px)"}},Ro=e=>e.style.setProperty("transition","none","important"),Vo=e=>{const t=document.createElement("div");return Qe((e=>({"aria-live":e,id:yt(e),tabIndex:-1,style:{"clip-path":"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",overflow:"hidden","white-space":"nowrap",border:"0px",padding:"0px",position:"absolute"}}))(e),t),t},Uo=(e,t)=>{const n=it("div",ut),i=Oi(e,qo),o=Wo(t,e),{width:r,height:a}=Ho(e);return $e(T({width:r,height:a,[Si(e,qo)]:i.x+"px"},o),n),n},Go=(e,t,n,i,o,r,a,s)=>{var c,d;let m=X(l(T({},t.license&&{license_id:t.license},{group:t.group,embedded:1,widget_version:3,initial_view:t.initialView,unique_groups:Number(t.uniqueGroups),organization_id:n.organizationId},!!i&&{custom_identity_provider:1},!!o&&{use_parent_storage:1},!!r&&{features:r},pn(n))));Nn();const p={kill(){this._emit("widget_resize",{size:{width:"0px",height:"0px"}}),this.unbind(),e.custom||nt(e.element)},applyHiddenStyles(){$e(lt,e.element)},isFocused:()=>!!document.hasFocus&&document.hasFocus(),resize(t){let{width:i,height:o,maximized:r,ignoreHorizontalOffset:a,animated:s}=void 0===t?{}:t;const c={width:i,height:o},l=Wo(r,n,a);e.element.style.transition=s?Mn:"none",$e(T({},c,l),e.element);const d=et(["width","height"],e.element);this._emit("widget_resize",{size:c,computedSize:d})},show(){$e(dt,e.element)},hide(){this.call("hide")},focusMinimized(){const e=document.getElementById(rt);if(e&&e.contentDocument){const t=e.contentDocument.querySelector("button");t&&t.focus()}},minimize(){this.call("minimize")},maximize(e){const{activeElement:t}=document,n=window.event&&window.event.isTrusted?window.event.type:null,i=()=>{t.removeEventListener("blur",i),this.emit("host_focus_shifted")};t.addEventListener("blur",i),this.call("maximize",n,e)},unbind(){this.hide(),this.destroy(),this._emit("unbind"),this.off(),this.call=A,Object.keys(p).forEach(e=>{this[e]=A})},callIdentityProvider:e=>null==i?void 0:i[e](),callParentStorageMethod(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;t>i;i++)n[i-1]=arguments[i];return null==o?void 0:o[e].apply(o,n)},applyFramesStyle(e){let{minimizedFrameStyle:t,maximizedFrameStyle:n}=e;const i=document.getElementById(ot),o=document.getElementById(rt);i&&$e(n,i),o&&$e(t,o)},setLiveAnnouncerMessage(e){let{message:t,ariaLevel:n}=e;const i=document.getElementById(yt(n));i?i.textContent=t:console.error('[LiveChat] Aria announcer element with level "'+n+'" not found')},renderCrossFrameMarkup(t){let[n,i]=t,o=document.getElementById(rt);o||(o=document.createElement("iframe"),Qe(T({},wt,{title:"openwidget"===a?ct:st}),o),e.element.appendChild(o),e.element.appendChild(Vo("polite")),e.element.appendChild(Vo("assertive")),o.contentDocument.fonts.ready.then(()=>this.emit("minimized_frame_fonts_ready")).catch(A)),Pn(n,i,o,this)},renderLightboxMarkup(e){var t,n;let[i,o]=e,r=document.getElementById(_t.id);this.handleLightboxKeydown=e=>(e=>{const{updateLightboxState:t,event:n,state:i}=e;if("Escape"===n.key)return t(T({},i,{state:"closing"})),void n.stopPropagation();if("ArrowLeft"===n.key||"ArrowRight"===n.key){n.preventDefault();const e=("product"===i.mode?i.productImages||{}:i.images||{}).orderedEventIds||[],o=i.currentImageEventId;if(!o||1>=e.length)return;t(T({},i,{currentImageEventId:Rn(e,o,"ArrowLeft"===n.key?"previous":"next",!0),imagesScrollPosition:void 0,state:"loading",skipEnterAnimations:!0}))}})({event:e,updateLightboxState:e=>this.call("storeMethod",["setApplicationState",{lightbox:T({},this.state.application.lightbox||{},e)}]),state:this.state.application.lightbox||{}}),r||(r=document.createElement("iframe"),Qe(_t,r),document.body.appendChild(r),r.focus(),qt()||!Bt()&&/Safari/.test(navigator.userAgent)?r.onload=()=>{r.contentDocument.addEventListener("keydown",this.handleLightboxKeydown)}:r.contentDocument.addEventListener("keydown",this.handleLightboxKeydown));const a=null==(t=r.contentDocument)?void 0:t.querySelector("#"+Wn),s=null!=(n=null==a?void 0:a.scrollLeft)?n:0;if(Pn(i,o,r,this),s>0){var c;const e=null==(c=r.contentDocument)?void 0:c.querySelector("#"+Wn);e&&(e.scrollLeft=s)}},removeLightboxMarkup(){var e;const t=document.getElementById(_t.id);t&&(null==(e=t.contentDocument)||null==(e=e.activeElement)||e.blur(),this.handleLightboxKeydown&&(t.contentDocument.removeEventListener("keydown",this.handleLightboxKeydown),this.handleLightboxKeydown=null),t.remove())},getMinimizedDimensions(){if(!e.element.offsetWidth)return null;const t=document.getElementById(rt).contentDocument.querySelector('[role="main"]');return et(["width","height"],t)},callElementMethod(e){var t,n;let[i,o,...r]=e;null==(t=document.getElementById(rt).contentDocument.querySelector(i))||null==(n=t[o])||n.call.apply(n,[t].concat(r))},callLightboxElementMethod(e){let[t,n,...i]=e;const o=document.getElementById(_t.id);var r,a;o&&(null==(r=o.contentDocument.querySelector(t))||null==(a=r[n])||a.call.apply(a,[r].concat(i)))},getLightboxElementProperties(e){let[t,n]=e;const i=document.getElementById(_t.id),o=i&&i.contentDocument.querySelector(t);return o?L(n,o):{}},refreshPage(){window.location.reload()},getElementProperties(e){let[t,n]=e;const i=document.getElementById(rt),o=i&&i.contentDocument.querySelector(t);return o?L(n,o):{}},setTitleNotification(e){const t=Bn();e?t.setTitleNotification(e):t.clearTitleNotification()}},f=t.iframeAddress+"?"+m,h=new MutationObserver(t=>t.forEach(t=>{const n=u(e=>"IFRAME"===e.tagName&&e.getAttribute("src")===f,t.addedNodes);n&&((e,t,n)=>{Qe(T({},vt,{title:"openwidget"===n?ct:st}),t),e.custom||$e(gt,t)})(e,n,a)}));h.observe(e.element,{childList:!0});let g=!0;if("openwidget"===a){var v;g=!!(null==(v=n.features.find(e=>"forms"===e.name))||null==(v=v.properties)||null==(v=v.templates)?void 0:v.bugreport)}return new Qn({container:e.element,url:f,methods:p,iframeAllowedProperties:zn({allowAutoplay:!0,allowVideoConferencing:Mi(n,"microphone"),allowClipboardWrite:Mi(n,"clipboard_write"),allowDisplayCapture:g}),model:T({},t,{fullWidth:null==(c=e.size)?void 0:c.width,fullHeight:null==(d=e.size)?void 0:d.height,serverConfig:n,parentWidth:window.innerWidth,parentHeight:window.innerHeight,defaultWidget:a,newMinimizedLayout:s})}).then(e=>Promise.all([e,To(e)])).then(e=>{let[t]=e;return h.disconnect(),t})},Xo=(e,t,n,i,o,r)=>{if(e.call("storeMethod",["setLocalization",i]),(e=>{let t=!1,n=null;function i(t){e.state.application.visibility.interactionModality===t&&t===n||(e.call("setInteractionModality",t),n=t)}function o(e){t=!0,function(e){const t="Tab"===e.key&&e.shiftKey;return["Tab"," ","Enter","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"].includes(e.key)||t}(e)&&i("keyboard")}function r(e){i("pointer"),"mousedown"!==e.type&&"pointerdown"!==e.type||(t=!0)}function a(e){e.target!==window&&e.target!==document&&(t||i("keyboard"),t=!1)}function s(){t=!1}document.addEventListener("keydown",o,!0),document.addEventListener("keyup",o,!0),window.addEventListener("focus",a,!0),window.addEventListener("blur",s,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",r,!0),document.addEventListener("pointermove",r,!0),document.addEventListener("pointerup",r,!0)):(document.addEventListener("mousedown",r,!0),document.addEventListener("mousemove",r,!0),document.addEventListener("mouseup",r,!0))})(e),n.custom||Ni(n.element,()=>Ht(e.state,"hidden")),qo||"wix"===t.integrationName||Bi(e,o,i),Ro(e.frame),function(e,t,n){po(e,t,n),("LiveChatWidget"in window||"OpenWidget"in window)&&bo(e,t,n)}(e,t,o),yi(e,t),be(di(e,()=>((e=>{Ot().then(t=>{e.call("shouldBridgeHandleAudio").then(n=>{n&&(Mt.isBridgeActive=!0,e.on("add_event",n=>{let{event:i}=n;Mt.isBridgeActive&&(Ke(e.state,"muted")||((e,t)=>"system"!==e.author&&!e.properties.welcomeMessage&&e.author!==t&&"custom"!==e.type)(i,Ye(e.state))&&t(bt))}),e.on("reaction_received",n=>{let{event:i}=n;Mt.isBridgeActive&&(Ke(e.state,"muted")||Ye(e.state)===i.author&&t(bt))}))})})})(e),Ie)),ve(A)),"wix"===t.integrationName?(e=>{Zn.addEventListener(Zn.Events.PAGE_NAVIGATION,()=>{ei().then(t=>e.call("storeMethod",["setApplicationState",{page:t}]))})})(e):(Co(e),"openwidget"===r&&Hn(e),Ji(e,r)),ji(e),"livechat"===r){var a;"documentPictureInPicture"in window&&(e=>{var t;return!!(null==(t=e.properties.license.bb9e5b2f1ab480e4a715977b7b1b4279)?void 0:t.detached_mode_enabled)})(o)&&Fi(t,e),(e=>{be(oi(e,e=>Ke(e).showTextSelectionTracking),ge(Boolean),Me(1),ve(()=>{Oo(e)}))})(e),(e=>{const{actingAsDirectLink:t,embedded:n,mobileWrapper:i}=Ke(e.state);if(t||!n||i)return;let o=null,r=null;const a=be(_e(document,"visibilitychange"),ge(()=>"maximized"===Ke(e.state).visibility.state),ke(()=>!document.hidden));be(a,Fe(ye(e,"unbind")),ve(t=>{!t&&Ve(e.state,Xi).active?o=Date.now():o&&(r=Date.now()-o)})),be(ye(e,"add_event"),ge(e=>{var t;let{event:n}=e;return"client_inactive"===(null==(t=n.properties)?void 0:t.systemMessageType)}),ge(()=>!!r&&Ve(e.state,Xi).properties.ended),Me(1),ve(()=>{Math.floor(100*Math.random())||e.call("logInfo","inactivity_duration",{duration:r,mobile:Ke(e.state).mobile}),r=null}))})(e);(null==o||null==(a=o.__unsafeProperties)?void 0:a.enableTextApp)&&jo(e)}t.actingAsDirectLink||n.custom||function(e){be(oi(e,e=>Ht(e,"hidden")),Se(1),ve(t=>{t?e.applyHiddenStyles():e.show()}))}(e),function(e){if("Google Inc."!==navigator.vendor||"Win32"!==navigator.platform)return;const{frame:t}=e,n=d(100,()=>{$e(et(["width"],t),t),requestAnimationFrame(()=>{$e({width:vt.style.width},t)})});document.addEventListener("scroll",n);const i=()=>{e.off("unbind",i),document.removeEventListener("scroll",n)};e.on("unbind",i)}(e),function(e){const t=()=>{setTimeout(()=>{document.addEventListener("touchstart",A),setTimeout(()=>{document.removeEventListener("touchstart",A)},500)},500)};window.addEventListener("orientationchange",t);const n=()=>{e.off("unbind",n),window.removeEventListener("orientationchange",t)};e.on("unbind",n)}(e),Pi(e,o),qo&&!n.custom&&ko(e),Io(e),e.on("rich_greeting_button_clicked",e=>{let{button:t}=e;"url"===t.type&&fo.navigate(t.value,"current"===t.target?"_parent":"_blank")}),e.on("open_in_new_tab",e=>{fo.navigate(e)}),e.on("register_exit_intent_listener",()=>{const t=((e,t)=>{const n=n=>{n.currentTarget&&n.relatedTarget||(e.call("storeMethod",["emit","exit_intent_detected"]),t())};return window&&(Gi&&window.removeEventListener("mouseout",Gi),window.addEventListener("mouseout",n),Gi=n),()=>{window&&window.removeEventListener("mouseout",n)}})(e,()=>{t()})}),e.on("apply_exit_intent_shade",()=>{((e,t)=>{t.call("storeMethod",["setApplicationState",{isExitIntentShadeDisplayed:!0}]);const n=document.createElement("div");n.id=Ri,$e((e=>({position:"fixed",bottom:"0",[e]:"0",width:"100%",height:"100%",background:"linear-gradient(to "+("left"===e?"right":"left")+" top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0))",zIndex:999999,"pointer-events":"none",opacity:0,transition:"opacity 100ms ease-in-out"}))(e),n),document.body.appendChild(n),setTimeout(()=>{n.style.opacity="1"},0),Vi&&window.removeEventListener("mouseover",Vi),Vi=()=>Ui(t),window.addEventListener("mouseover",Vi)})(Si(o,!1),e)}),e.on("remove_exit_intent_shade",()=>{Ui(e)}),e.on("refresh-page",()=>{window.location.reload()}),e.on("open_phone_number",e=>{window.location.href="tel:"+e}),n.custom||function(e,t){let n=!1;const i=new IntersectionObserver(t=>{const i=t[0];if(!i)return;const o=i.isIntersecting;o&&n&&e.emit("container_became_visible"),n=!o});i.observe(t);const o=()=>{e.off("unbind",o),i.disconnect()};e.on("unbind",o)}(e,n.element)},Yo=e=>(e=>{let{licenseId:t,organizationId:n}=e;return cn("https://api.livechatinc.com/global-mapper/"+(t?"lc_license_id/"+t:"organization_id/"+n)+"/region",{callbackName:"lc_region"}).then(e=>e.region).catch(()=>{const e=Error("Fetch region failed");throw e.code="FETCH_REGION_FAILED",e})})(e).then(t=>gn(T({},e,{region:t})).then(t=>{return Promise.all([t,(n={region:t.region,organizationId:t.organizationId,licenseId:e.licenseId,groupId:t.groupId,version:t.configVersion},cn(hn("get_configuration",n),{callbackName:"lc_static_config",query:T({organization_id:n.organizationId,version:n.version},pn(n),"number"==typeof n.groupId&&{group_id:n.groupId})}).then(e=>yn(e)))]).then(e=>{let[t,n]=e;return T({},t,n)});var n}));var Jo=(e,t)=>{window.performance&&"function"==typeof window.performance.mark&&window.performance.mark("lc_bridge_init");let n=!1,i=e;window.LC_API=window.LC_API||{},window.LC_API.is_loaded=()=>n;const{region:o,licenseId:r,organizationId:a,requestedGroupId:s,actingAsDirectLink:c,skipCodeInstallationTracking:d,integrationName:u,productName:m,customIdentityProviderInitializer:p,templateId:f}=t,h=T({},a?{organizationId:a}:{licenseId:r},{skipCodeInstallationTracking:d,productName:m,integrationName:u,channelType:c?"direct_link":"code",url:Sn(document.location+"")},"number"==typeof s&&{groupId:s},"string"==typeof o&&{region:o}),g="livechat"===i?Yo(h).catch(e=>{if("DEFAULT_WIDGET_NOT_LIVECHAT"===e.code&&"openwidget"===e.defaultWidget)return i=e.defaultWidget,window.__ow=window.__ow||{},window.__ow.organizationId=e.organizationId,window.OpenWidget=T({},window.LiveChatWidget),bn(e.organizationId,u,null,d);throw e}):bn(a,u,f,d,h.url);Promise.all([g,"wix"===u?ei():qn(),tt()]).then(e=>{let[o,r,a]=e;if(!Ki(o.allowedDomains,window.top===window?window.location.hostname:document.referrer))return void console.log("[LiveChat] Current domain is not added to the allowed domains. LiveChat has been disabled.");if("openwidget"===i&&!1===o.isWidgetEnabled)return;if(qo&&o.__unsafeProperties.group.disabledOnMobile&&!t.actingAsDirectLink)return;const s=Li(),c=(e=>{if(null===e)return null;const t=e();return"object"!=typeof t||"function"!=typeof t.getToken||"function"!=typeof t.getFreshToken||"function"!=typeof t.hasToken||"function"!=typeof t.invalidate?(console.error("custom_identity_provider() does not return proper handlers. ({getFreshToken: () => Promise, getToken: () => Promise, hasToken: () => Promise, invalidate: () => Promise })"),null):t})(p),d=window.localStorage,u=Wi(t,r,o),m=((e,t)=>e.customContainer?{custom:!0,element:e.customContainer}:{custom:!1,element:Uo(t,e.actingAsDirectLink),size:Ho(t)})(t,o),f="true"===ne("new_minimized_layout",window.location.search),h={};let g=!1;const v=$i("on_before_load"),_=$i("on_after_load");v(e=>{e.disable_sounds=A,e.mobile_is_detected=()=>qo,e.chat_running=()=>!1,e.visitor_engaged=()=>!1,e.agents_are_available=()=>-1!==o.onlineGroupIds.indexOf(o.groupId),e.get_window_type=()=>"embedded",e.hide_chat_window=bi(u)?A:()=>g=!0,e.set_visitor_name=e=>h.name=lo(e),e.set_visitor_email=e=>h.email=lo(e),e.set_custom_variables=e=>h.properties=e?ao(e):{},e.update_custom_variables=e=>{e&&(h.properties=T({},h.properties,ao(e)))}});const w=T({},u,o.licenseId&&{license:o.licenseId},{customer:T({},u.customer,h),hidden:u.hidden||g,organizationId:o.organizationId});var y;m.custom||a.appendChild(m.element),window.performance&&"function"==typeof window.performance.mark&&window.performance.mark("lc_bind_child"),Promise.all([Go(m,w,o,c,d,null,i,f),"openwidget"===i?Promise.resolve(o.localization):(y={organizationId:w.organizationId,licenseId:w.license,groupId:w.group,region:w.region,version:o.localizationVersion,language:o.__unsafeProperties.group.language},cn(hn("get_localization",y),{callbackName:"lc_localization",query:T({organization_id:y.organizationId,version:y.version,language:y.language},pn(y),"number"==typeof y.groupId&&{group_id:y.groupId})}).then(e=>k(e=>e.toLowerCase(),e)))]).then(e=>{let[t,n]=e;return m.custom||Ro(m.element),Xo(t,w,m,n,o,i),be(oi(t,e=>Ke(e,"readyState")),ge(e=>e===B),Me(1),ke(()=>t),Ne)}).then(e=>{window.performance&&"function"==typeof window.performance.mark&&window.performance.mark("lc_bridge_ready"),s&&s.getLogs().then(t=>{e.call("logInfo","loading_time_measured",l(t))}),_(()=>n=!0)})}).catch(e=>{switch(null==e?void 0:e.code){case"ACCESS_NOT_RESOLVED":case"CUSTOMER_BANNED":case"FETCH_REGION_FAILED":return void console.warn("[LiveChat] "+e.message);default:throw e}})};function Ko(){tt().then(e=>{["https://cdn.livechatinc.com/widget/static/js/configurator.BIDE0QZM.js"].forEach(t=>{((e,t)=>{const n=document.createElement("script");Qe({src:t,type:"module",charset:"utf-8"},n),e.appendChild(n)})(e.ownerDocument.head,t)})})}const $o=(e,t)=>{const n={name:null,email:null,properties:{}};if("object"==typeof e&&e){const t=e.name,i=e.email;"string"==typeof t&&(n.name=t),"string"==typeof i&&(n.email=i)}return Array.isArray(t)&&(n.properties=ao(t)),n},Qo=e=>{if(e.wix)return"wix";if("string"==typeof e.integration_name)return e.integration_name;if("google_tag_manager"in window)try{if(void 0!==Array.from(document.getElementsByTagName("script")).find(e=>{var t;return null==(t=e.textContent)?void 0:t.startsWith("window.__lc")}))return"potentially_gtm"}catch(e){}return null},Zo=()=>{if(window.__lc_inited=!0,"msCrypto"in window)return void console.error("[LiveChat] We no longer support Internet Explorer");if(3!==[1].reduce((e,t)=>e+t,2))return void console.error("[LiveChat] This site has overriden Array.prototype.reduce (for example by using Prototype library) to a version that is not compatible with Web standards. LiveChat code couldn't be initialized because of this.");const e={licenseId:(t=window.__lc).license?parseInt(t.license):null,organizationId:"string"==typeof t.organizationId?t.organizationId:null,requestedGroupId:W(t),uniqueGroups:!1===t.chat_between_groups,customer:$o(t.visitor,t.params),skipCodeInstallationTracking:1===t.test,integrationName:Qo(t),productName:t.product_name||null,actingAsDirectLink:!0===t.direct_link,isMinimizedForcefullyDisabled:!0===t.disable_minimized,initMaximized:!0===t.init_maximized,initialView:"string"==typeof t.initial_view?t.initial_view:null,customContainer:t.custom_container||null,gaParams:{version:"string"==typeof t.ga_version?t.ga_version:null,omitGtm:!!t.ga_omit_gtm,sendToAll:!!t.ga_send_to_all_trackers},customIdentityProviderInitializer:"function"==typeof t.custom_identity_provider?t.custom_identity_provider:null,iframeAddress:null,region:_(t.region,(n=H,a(n).map(e=>n[e])))?t.region+"":null,isInShopifyCheckoutUI:!0===t.is_shopify_checkout_ui};var t,n;e.actingAsDirectLink||!(ne(ue,window.location.search)||U("session")&&window.sessionStorage.getItem(ue))?Jo("livechat",e):Ko()};window.__lc_inited||Zo()}();